Project Date
NLTEST 18 Sep 2020, 15:18

Failures Overview

The following summary displays scenarios that failed.

0.435
Scenario Outline Bronbestanden waterkwaliteit
edf79e6a-d73d-4def-8d22-0f495cc76a73 <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.009
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.418
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:11.501 [print] title:Bronbestanden waterkwaliteit
* print title 0.000
15:17:11.502 [print] Bronbestanden waterkwaliteit
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:11.503 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:11.505 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water"
]
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:47 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "edf79e6a-d73d-4def-8d22-0f495cc76a73" 0.000
0.415
Scenario Outline Overheidsdiensten
c935f2ab-9b65-4dc4-94a0-73aeb840a941 <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.007
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.399
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:18.452 [print] title:Overheidsdiensten
* print title 0.000
15:17:18.453 [print] Overheidsdiensten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:18.454 [print] [
  "erik.simonse@kvk.nl",
  "erik.simonse@kvk.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:18.456 [print] organisation: [
  "Kamer van Koophandel",
  "Kamer van Koophandel"
]
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:47 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "c935f2ab-9b65-4dc4-94a0-73aeb840a941" 0.000
0.461
Scenario Outline Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
fe45c540-e37d-11e4-b571-0800200c9a66 <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.008
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.448
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:23.646 [print] title:Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* print title 0.000
15:17:23.646 [print] Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:23.647 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:23.648 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:47 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "fe45c540-e37d-11e4-b571-0800200c9a66" 0.000
2.465
Scenario Outline Check f99e915a-75e5-4c36-97f2-61eff692d85b
Check href links in metadata record van f99e915a-75e5-4c36-97f2-61eff692d85b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f99e915a-75e5-4c36-97f2-61eff692d85b' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.735
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f99e915a-75e5-4c36-97f2-61eff692d85b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:29.560 [print] title:Grondwateronderzoek onder INSPIRE
* print title 0.000
15:17:29.560 [print] Grondwateronderzoek onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.006
15:17:29.568 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:29.570 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.016
* def db = new mystorage 0.002
* eval db.mywriteln('"f99e915a-75e5-4c36-97f2-61eff692d85b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.027
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.226
* print nlinks 0.000
15:17:29.843 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "f99e915a-75e5-4c36-97f2-61eff692d85b" 0.004
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.734
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 405, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:30.583 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 405, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"
}
> * print "testing xlinkurl: 0.001
15:17:29.879 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.007
15:17:29.888 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77
> Given url link 0.000
> When method HEAD 0.286
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
15:17:30.175 status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.001
15:17:30.175 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
15:17:30.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:30.177 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.405
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 405, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:30.583 status code was: 500, expected: 200, response time: 405, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.149
Scenario Outline Check 3703b249-a0eb-484e-ba7a-10e31a55bcec
Check href links in metadata record van 3703b249-a0eb-484e-ba7a-10e31a55bcec
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3703b249-a0eb-484e-ba7a-10e31a55bcec' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.911
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3703b249-a0eb-484e-ba7a-10e31a55bcec' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.003
15:17:29.744 [print] title:Invasieve Exoten (INSPIRE Geharmoniseerd)
* print title 0.000
15:17:29.744 [print] Invasieve Exoten (INSPIRE Geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.003
15:17:29.749 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "Geodatabeheer.GISCC@rvo.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.003
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.002
15:17:29.755 [print] organisation: Ministerie van Landbouw, Natuur en Voedselkwaliteit
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3703b249-a0eb-484e-ba7a-10e31a55bcec","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.033
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.051
* print nlinks 0.000
15:17:29.841 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec",
  "579"
]
* def id = "3703b249-a0eb-484e-ba7a-10e31a55bcec" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.088
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec}, {link=579}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 469, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"579"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:30.931 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"579"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.005
15:17:29.890 [print]
> * def link = __arg.link 0.002
> * print "testing xlinkurl:" + link 0.000
15:17:29.893 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.548
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"
}
> * print "testing xlinkurl: 0.001
15:17:30.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:30.445 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec
> Given url link 0.000
> When method HEAD 0.473
> Then status 200 0.008
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 469, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
15:17:30.928 status code was: 500, expected: 200, response time: 469, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "579"
}
> * print "testing xlinkurl: 0.000
15:17:30.928 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 469, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
15:17:30.930 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:30.930 [print] testing xlinkurl:579
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:30.931 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 579
15:17:30.931 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.934
Scenario Outline Check 3a72b9a4-cda9-11ea-87d0-0242ac130003
Check href links in metadata record van 3a72b9a4-cda9-11ea-87d0-0242ac130003
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3a72b9a4-cda9-11ea-87d0-0242ac130003' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.598
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3a72b9a4-cda9-11ea-87d0-0242ac130003' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:29.903 [print] title:Grondwater Monitoring Net
* print title 0.000
15:17:29.904 [print] Grondwater Monitoring Net
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:29.906 [print] [
  "info@bro.nl",
  "Info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:29.908 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3a72b9a4-cda9-11ea-87d0-0242ac130003","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.016
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:17:29.931 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "3a72b9a4-cda9-11ea-87d0-0242ac130003" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.664
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 336, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:30.596 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 336, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"
}
> * print "testing xlinkurl: 0.000
15:17:29.955 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:29.955 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003
> Given url link 0.000
> When method HEAD 0.301
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
15:17:30.256 status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:30.257 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
15:17:30.258 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:30.258 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.336
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 336, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:30.595 status code was: 500, expected: 200, response time: 336, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
7.521
Scenario Outline Check 247a1d15-0a67-40ce-85be-1403c08f15a8
Check href links in metadata record van 247a1d15-0a67-40ce-85be-1403c08f15a8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '247a1d15-0a67-40ce-85be-1403c08f15a8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.546
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '247a1d15-0a67-40ce-85be-1403c08f15a8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:29.948 [print] title:Nationale Parken (INSPIRE Geharmoniseerd)
* print title 0.000
15:17:29.948 [print] Nationale Parken (INSPIRE Geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:29.949 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "info@minlnv.nl",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:29.950 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"247a1d15-0a67-40ce-85be-1403c08f15a8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.006
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:29.959 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "247a1d15-0a67-40ce-85be-1403c08f15a8" 0.013
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.476
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 543, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:17:33.449 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 543, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:29.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:29.976 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.551
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8"
}
> * print "testing xlinkurl: 0.002
15:17:30.531 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:30.532 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8
> Given url link 0.000
> When method HEAD 0.383
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.016
15:17:30.934 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:30.936 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.541
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:31.479 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:31.479 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.563
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.011
15:17:32.055 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.056 [print] testing xlinkurl:xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
15:17:32.058 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps, http call failed after 0 milliseconds for URL: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
15:17:32.058 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:17:32.059 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
15:17:32.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.062 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.387
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 543, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:17:33.449 status code was: 404, expected: 200, response time: 543, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.636
Scenario Outline Check af0c582f-9e6b-46e6-865a-fc3a2d5289b9
Check href links in metadata record van af0c582f-9e6b-46e6-865a-fc3a2d5289b9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'af0c582f-9e6b-46e6-865a-fc3a2d5289b9' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af0c582f-9e6b-46e6-865a-fc3a2d5289b9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:31.103 [print] title:Bodemgebruik
* print title 0.000
15:17:31.104 [print] Bodemgebruik
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:31.105 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.008
15:17:31.114 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"af0c582f-9e6b-46e6-865a-fc3a2d5289b9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.007
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.010
* print nlinks 0.000
15:17:31.134 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"
]
* def id = "af0c582f-9e6b-46e6-865a-fc3a2d5289b9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.044
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:17:31.179 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"
}
> * print "testing xlinkurl: 0.000
15:17:31.139 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.008
15:17:31.148 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78
> Given url link 0.000
> When method HEAD 0.031
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:17:31.179 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 31 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78
15:17:31.179 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.670
Scenario Outline Check 9d9f1738-aced-47c9-aaa0-c62474a2dcfb
Check href links in metadata record van 9d9f1738-aced-47c9-aaa0-c62474a2dcfb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9d9f1738-aced-47c9-aaa0-c62474a2dcfb' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.607
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9f1738-aced-47c9-aaa0-c62474a2dcfb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:31.208 [print] title:Zeegebieden
* print title 0.000
15:17:31.209 [print] Zeegebieden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:31.210 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.008
15:17:31.220 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9d9f1738-aced-47c9-aaa0-c62474a2dcfb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.000
15:17:31.230 [print] [
  "http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"
]
* def id = "9d9f1738-aced-47c9-aaa0-c62474a2dcfb" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.029
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:31.260 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"
}
> * print "testing xlinkurl: 0.004
15:17:31.257 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:31.258 [print] testing xlinkurl:http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:31.259 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e
15:17:31.260 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.281
Scenario Outline Check 3a7dd0a6-d130-4c4c-b0ba-24365cf036e2
Check href links in metadata record van 3a7dd0a6-d130-4c4c-b0ba-24365cf036e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.004
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3a7dd0a6-d130-4c4c-b0ba-24365cf036e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.527
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3a7dd0a6-d130-4c4c-b0ba-24365cf036e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:31.424 [print] title:Vervoersnetwerken - Spoorwegen (INSPIRE geharmoniseerd)
* print title 0.000
15:17:31.424 [print] Vervoersnetwerken - Spoorwegen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:31.425 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:31.427 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3a7dd0a6-d130-4c4c-b0ba-24365cf036e2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.008
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.009
* print nlinks 0.000
15:17:31.456 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"
]
* def id = "3a7dd0a6-d130-4c4c-b0ba-24365cf036e2" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.366
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:31.824 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:31.470 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:31.471 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.345
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"
}
> * print "testing xlinkurl: 0.000
15:17:31.819 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:31.819 [print] testing xlinkurl:http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:31.823 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526
15:17:31.823 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.583
Scenario Outline Check b3f66964-a8c1-456f-9799-9cafca2cb7b1
Check href links in metadata record van b3f66964-a8c1-456f-9799-9cafca2cb7b1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b3f66964-a8c1-456f-9799-9cafca2cb7b1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.573
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3f66964-a8c1-456f-9799-9cafca2cb7b1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:31.476 [print] title:Monitoring stations (Nitraatrichtlijn) ondiepe filters
* print title 0.000
15:17:31.477 [print] Monitoring stations (Nitraatrichtlijn) ondiepe filters
* def email = get response //electronicMailAddress/CharacterString 0.003
* print email 0.000
15:17:31.481 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:31.482 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b3f66964-a8c1-456f-9799-9cafca2cb7b1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.011
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.000
15:17:31.500 [print] [
  "https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"
]
* def id = "b3f66964-a8c1-456f-9799-9cafca2cb7b1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.500
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:32.002 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"
}
> * print "testing xlinkurl: 0.000
15:17:31.521 [print]
> * def link = __arg.link 0.002
> * print "testing xlinkurl:" + link 0.000
15:17:31.524 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b
> Given url link 0.000
> When method HEAD 0.477
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:32.002 javax.net.ssl.SSLException: Connection reset, http call failed after 477 milliseconds for URL: https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b
15:17:32.002 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.716
Scenario Outline Check 81ff84ec-42a4-4481-840b-12713bbb5d38
Check href links in metadata record van 81ff84ec-42a4-4481-840b-12713bbb5d38
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.005
And param id = '81ff84ec-42a4-4481-840b-12713bbb5d38' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.568
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '81ff84ec-42a4-4481-840b-12713bbb5d38' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:31.508 [print] title:Geografische Namen
* print title 0.000
15:17:31.509 [print] Geografische Namen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:31.510 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:31.511 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"81ff84ec-42a4-4481-840b-12713bbb5d38","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.010
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.000
15:17:31.530 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"
]
* def id = "81ff84ec-42a4-4481-840b-12713bbb5d38" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.064
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:31.596 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"
}
> * print "testing xlinkurl: 0.003
15:17:31.540 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.031
15:17:31.572 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79
> Given url link 0.000
> When method HEAD 0.017
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:31.583 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79
15:17:31.595 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.649
Scenario Outline Check a7fb2234-f7b4-4a03-b282-f10947f42fb1
Check href links in metadata record van a7fb2234-f7b4-4a03-b282-f10947f42fb1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a7fb2234-f7b4-4a03-b282-f10947f42fb1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.501
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7fb2234-f7b4-4a03-b282-f10947f42fb1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:31.686 [print] title:Kaart van de bodemopbouw in Nederland 1:50.000 onder INSPIRE
* print title 0.000
15:17:31.686 [print] Kaart van de bodemopbouw in Nederland 1:50.000 onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:31.687 [print] [
  "info@dinoloket.nl",
  "geodesk.cgi@wur.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:31.689 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "Alterra, Wageningen UR",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a7fb2234-f7b4-4a03-b282-f10947f42fb1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.055
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.003
15:17:31.752 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "a7fb2234-f7b4-4a03-b282-f10947f42fb1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.548
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/16}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 540, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 981, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:34.301 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"
}
> * print "testing xlinkurl: 0.000
15:17:31.773 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:31.773 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac
> Given url link 0.000
> When method HEAD 0.540
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 540, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
15:17:32.315 status code was: 404, expected: 200, response time: 540, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"
}
> * print "testing xlinkurl: 0.000
15:17:32.315 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 540, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
15:17:32.316 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.316 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/16
> Given url link 0.000
> When method HEAD 0.982
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 981, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:17:33.299 status code was: 404, expected: 200, response time: 981, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:17:33.299 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 981, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:17:33.300 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.301 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.693
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:33.994 status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:33.994 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:33.995 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.995 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:34.301 status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.547
Scenario Outline Check c7662717-9e43-4367-a344-723d73abbb3e
Check href links in metadata record van c7662717-9e43-4367-a344-723d73abbb3e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c7662717-9e43-4367-a344-723d73abbb3e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7662717-9e43-4367-a344-723d73abbb3e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:31.799 [print] title:-Gegevens boormonsterprofiel onder PDOK
* print title 0.000
15:17:31.800 [print] -Gegevens boormonsterprofiel onder PDOK
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:31.800 [print] [
  "info@dinoloket",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.007
15:17:31.808 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c7662717-9e43-4367-a344-723d73abbb3e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.019
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:31.830 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"
]
* def id = "c7662717-9e43-4367-a344-723d73abbb3e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.489
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 475, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
15:17:32.321 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 475, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"
}
> * print "testing xlinkurl: 0.010
15:17:31.844 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:31.845 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e
> Given url link 0.000
> When method HEAD 0.476
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 475, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
15:17:32.321 status code was: 404, expected: 200, response time: 475, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.270
Scenario Outline Check 8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f
Check href links in metadata record van 8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.487
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.003
* print 'title:' + title 0.000
15:17:32.319 [print] title:Emissies naar het riool in 2011 vanuit de industrie
* print title 0.000
15:17:32.319 [print] Emissies naar het riool in 2011 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:32.321 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:32.323 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.018
* print nlinks 0.000
15:17:32.346 [print] [
  "https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"
]
* def id = "8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.379
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:32.727 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"
}
> * print "testing xlinkurl: 0.000
15:17:32.359 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:32.361 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313
> Given url link 0.000
> When method HEAD 0.365
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:32.727 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313
15:17:32.727 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.617
Scenario Outline Check 29d5310f-dd0d-45ba-abad-b4ffc6b8785f
Check href links in metadata record van 29d5310f-dd0d-45ba-abad-b4ffc6b8785f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '29d5310f-dd0d-45ba-abad-b4ffc6b8785f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29d5310f-dd0d-45ba-abad-b4ffc6b8785f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:32.516 [print] title:TOP10NL
* print title 0.000
15:17:32.517 [print] TOP10NL
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:32.519 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:32.522 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"29d5310f-dd0d-45ba-abad-b4ffc6b8785f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.009
* print nlinks 0.001
15:17:32.537 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b201",
  "",
  "",
  "",
  "",
  ""
]
* def id = "29d5310f-dd0d-45ba-abad-b4ffc6b8785f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.048
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b201}, {link=}, {link=}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.586 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"
}
> * print "testing xlinkurl: 0.001
15:17:32.543 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.544 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b201
> Given url link 0.000
> When method HEAD 0.008
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:32.552 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b201
15:17:32.552 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:32.554 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:32.555 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.556 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.557 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:32.558 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:17:32.559 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.561 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.562 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.563 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:32.563 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:17:32.565 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.566 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.567 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.568 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:32.569 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:32.570 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.571 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.572 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.574 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:32.580 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:32.581 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.582 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.583 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:32.584 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:32.585 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.162
Scenario Outline Check 791adbe3-772f-42cb-a3be-5a617bcecef0
Check href links in metadata record van 791adbe3-772f-42cb-a3be-5a617bcecef0
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '791adbe3-772f-42cb-a3be-5a617bcecef0' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '791adbe3-772f-42cb-a3be-5a617bcecef0' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:32.840 [print] title:Zeegebieden (INSPIRE geharmoniseerd)
* print title 0.000
15:17:32.841 [print] Zeegebieden (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:32.842 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:32.843 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"791adbe3-772f-42cb-a3be-5a617bcecef0","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.009
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.005
* print nlinks 0.000
15:17:32.860 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"
]
* def id = "791adbe3-772f-42cb-a3be-5a617bcecef0" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.319
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:33.180 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:32.875 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:32.876 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.297
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"
}
> * print "testing xlinkurl: 0.001
15:17:33.176 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.177 [print] testing xlinkurl:http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:33.178 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3
15:17:33.178 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.513
Scenario Outline Check db8d613f-5edc-4467-9cc0-e2dcfb9d64a8
Check href links in metadata record van db8d613f-5edc-4467-9cc0-e2dcfb9d64a8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'db8d613f-5edc-4467-9cc0-e2dcfb9d64a8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.604
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db8d613f-5edc-4467-9cc0-e2dcfb9d64a8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:17:33.196 [print] title:Statistical Units Grid
* print title 0.000
15:17:33.196 [print] Statistical Units Grid
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:33.197 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:33.199 [print] organisation: [
  "Statistics Netherlands",
  "Statistics Netherlands",
  "Statistics Netherlandds",
  "Statistics Netherlands"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"db8d613f-5edc-4467-9cc0-e2dcfb9d64a8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.002
15:17:33.212 [print] [
  "https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs",
  ""
]
* def id = "db8d613f-5edc-4467-9cc0-e2dcfb9d64a8" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.445
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 433, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:33.658 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"
}
> * print "testing xlinkurl: 0.000
15:17:33.215 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.216 [print] testing xlinkurl:https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs
> Given url link 0.000
> When method HEAD 0.433
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 433, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
15:17:33.650 status code was: 400, expected: 200, response time: 433, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.003
15:17:33.650 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 433, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
15:17:33.655 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.656 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:33.657 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:33.657 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.328
Scenario Outline Check 2cc2c30c-91b8-412a-a060-e84d25272581
Check href links in metadata record van 2cc2c30c-91b8-412a-a060-e84d25272581
Steps
Given path 'geonetwork/srv/dut/inspire' 0.005
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2cc2c30c-91b8-412a-a060-e84d25272581' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.558
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2cc2c30c-91b8-412a-a060-e84d25272581' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:33.295 [print] title:Zones en agglomeraties (Richtlijn Luchtkwaliteit) 2013
* print title 0.000
15:17:33.296 [print] Zones en agglomeraties (Richtlijn Luchtkwaliteit) 2013
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:33.297 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.006
15:17:33.304 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"2cc2c30c-91b8-412a-a060-e84d25272581","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:33.313 [print] [
  "https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"
]
* def id = "2cc2c30c-91b8-412a-a060-e84d25272581" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.372
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:33.687 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"
}
> * print "testing xlinkurl: 0.000
15:17:33.318 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.319 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b
> Given url link 0.000
> When method HEAD 0.367
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:33.685 javax.net.ssl.SSLException: Connection reset, http call failed after 366 milliseconds for URL: https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b
15:17:33.686 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.152
Scenario Outline Check 83dab947-387b-49df-8ad2-32bb10d46d38
Check href links in metadata record van 83dab947-387b-49df-8ad2-32bb10d46d38
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '83dab947-387b-49df-8ad2-32bb10d46d38' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.500
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '83dab947-387b-49df-8ad2-32bb10d46d38' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:33.685 [print] title:Geluidkaart Schiphol 2016 (Lden)
* print title 0.000
15:17:33.685 [print] Geluidkaart Schiphol 2016 (Lden)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:33.687 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.001
* print 'organisation:', organisation 0.000
15:17:33.690 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"83dab947-387b-49df-8ad2-32bb10d46d38","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.002
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.000
15:17:33.705 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"
]
* def id = "83dab947-387b-49df-8ad2-32bb10d46d38" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.315
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
15:17:34.021 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"
}
> * print "testing xlinkurl: 0.002
15:17:33.710 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.711 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
15:17:34.021 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.150
Scenario Outline Check 5951efa2-1ff3-4763-a966-a2f5497679ee
Check href links in metadata record van 5951efa2-1ff3-4763-a966-a2f5497679ee
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5951efa2-1ff3-4763-a966-a2f5497679ee' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.507
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5951efa2-1ff3-4763-a966-a2f5497679ee' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:33.961 [print] title:Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd)
* print title 0.000
15:17:33.962 [print] Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:33.963 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:33.965 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5951efa2-1ff3-4763-a966-a2f5497679ee","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.002
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.002
15:17:33.974 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"
]
* def id = "5951efa2-1ff3-4763-a966-a2f5497679ee" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.314
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:34.289 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:33.978 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:33.978 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.305
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"
}
> * print "testing xlinkurl: 0.000
15:17:34.286 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.287 [print] testing xlinkurl:http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:34.288 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf
15:17:34.288 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.280
Scenario Outline Check f2f86edf-ac3a-48e8-9292-0544da2d7645
Check href links in metadata record van f2f86edf-ac3a-48e8-9292-0544da2d7645
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f2f86edf-ac3a-48e8-9292-0544da2d7645' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2f86edf-ac3a-48e8-9292-0544da2d7645' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:34.197 [print] title:Emissies naar het riool in 2015 vanuit de industrie
* print title 0.000
15:17:34.198 [print] Emissies naar het riool in 2015 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:34.199 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:34.201 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f2f86edf-ac3a-48e8-9292-0544da2d7645","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.009
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.001
15:17:34.218 [print] [
  "https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"
]
* def id = "f2f86edf-ac3a-48e8-9292-0544da2d7645" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:34.581 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"
}
> * print "testing xlinkurl: 0.000
15:17:34.223 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.223 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:34.581 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65
15:17:34.581 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.647
Scenario Outline Check 5a1adb58-0bbe-425d-b0fe-577a6c0a4228
Check href links in metadata record van 5a1adb58-0bbe-425d-b0fe-577a6c0a4228
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5a1adb58-0bbe-425d-b0fe-577a6c0a4228' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.564
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a1adb58-0bbe-425d-b0fe-577a6c0a4228' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:34.230 [print] title:Actueel Hoogtebestand Nederland 1 (AHN1)
* print title 0.000
15:17:34.230 [print] Actueel Hoogtebestand Nederland 1 (AHN1)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:34.231 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:34.232 [print] organisation: [
  "Rijkswaterstaat",
  "stuurgroep AHN",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5a1adb58-0bbe-425d-b0fe-577a6c0a4228","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:17:34.238 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "5a1adb58-0bbe-425d-b0fe-577a6c0a4228" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.536
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:34.777 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228"
}
> * print "testing xlinkurl: 0.000
15:17:34.243 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.243 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228
> Given url link 0.000
> When method HEAD 0.327
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:17:34.572 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.573 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:17:34.773 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:34.773 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:17:34.774 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.775 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:34.776 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:34.776 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.303
Scenario Outline Check 8de2f5eb-b09f-4f6d-8397-8878a1b86238
Check href links in metadata record van 8de2f5eb-b09f-4f6d-8397-8878a1b86238
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8de2f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.615
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8de2f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:34.308 [print] title:Geluidbelasting rijkswegen in Nederland 2011 (24-uurs gemiddelde)
* print title 0.000
15:17:34.308 [print] Geluidbelasting rijkswegen in Nederland 2011 (24-uurs gemiddelde)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:34.308 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:34.309 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8de2f5eb-b09f-4f6d-8397-8878a1b86238","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.006
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.001
15:17:34.323 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "8de2f5eb-b09f-4f6d-8397-8878a1b86238" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.835
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:35.159 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238"
}
> * print "testing xlinkurl: 0.000
15:17:34.326 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.327 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:17:34.643 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.644 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:34.844 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
15:17:34.844 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:34.846 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.846 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:35.157 status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:35.157 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:35.158 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.159 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:35.159 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:35.159 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.200
Scenario Outline Check tbjk534p-wubf-crbp-cj25-d4161160gfim
Check href links in metadata record van tbjk534p-wubf-crbp-cj25-d4161160gfim
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'tbjk534p-wubf-crbp-cj25-d4161160gfim' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.518
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d4161160gfim' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:34.544 [print] title:Kaderrichtlijn Mariene Strategie - Bevroren monitoringsdata
* print title 0.000
15:17:34.544 [print] Kaderrichtlijn Mariene Strategie - Bevroren monitoringsdata
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:34.545 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:34.546 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"tbjk534p-wubf-crbp-cj25-d4161160gfim","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.007
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:34.557 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "tbjk534p-wubf-crbp-cj25-d4161160gfim" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.834
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:35.392 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim"
}
> * print "testing xlinkurl: 0.000
15:17:34.561 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.561 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
15:17:34.874 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:34.874 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:17:35.074 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
15:17:35.074 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:17:35.076 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.077 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:35.392 status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.536
Scenario Outline Check eu-cb527d-f6db-4835-b0cd-deb245241254
Check href links in metadata record van eu-cb527d-f6db-4835-b0cd-deb245241254
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-cb527d-f6db-4835-b0cd-deb245241254' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-cb527d-f6db-4835-b0cd-deb245241254' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:34.847 [print] title:Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd) - RWS
* print title 0.000
15:17:34.847 [print] Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd) - RWS
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:34.848 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "beheerPDOK@kadaster.nl",
  "",
  "beheerPDOK@kadaster.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.002
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:34.851 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Beheer PDOK",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"eu-cb527d-f6db-4835-b0cd-deb245241254","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:17:34.857 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "eu-cb527d-f6db-4835-b0cd-deb245241254" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.486
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 448, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:36.344 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254"
}
> * print "testing xlinkurl: 0.000
15:17:34.860 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:34.861 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
15:17:35.173 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.173 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:35.373 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
15:17:35.373 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:35.374 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.374 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 0.661
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 448, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
15:17:36.036 status code was: 404, expected: 200, response time: 448, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:36.036 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 448, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
15:17:36.037 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.037 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:36.343 status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.675
Scenario Outline Check be1b1514-8d1f-48e1-9624-fee9b784138b
Check href links in metadata record van be1b1514-8d1f-48e1-9624-fee9b784138b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'be1b1514-8d1f-48e1-9624-fee9b784138b' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.594
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be1b1514-8d1f-48e1-9624-fee9b784138b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:34.900 [print] title:Vaarwegmarkeringen Nederland
* print title 0.000
15:17:34.901 [print] Vaarwegmarkeringen Nederland
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:34.902 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:34.904 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"be1b1514-8d1f-48e1-9624-fee9b784138b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.018
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:34.929 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "be1b1514-8d1f-48e1-9624-fee9b784138b" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.526
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:35.456 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b"
}
> * print "testing xlinkurl: 0.000
15:17:34.934 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.003
15:17:34.937 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
15:17:35.254 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.254 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:35.455 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:35.455 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:35.456 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.456 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:35.456 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:35.456 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.309
Scenario Outline Check 9dd9bf30-36e6-45ae-b368-bdef2720bdde
Check href links in metadata record van 9dd9bf30-36e6-45ae-b368-bdef2720bdde
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9dd9bf30-36e6-45ae-b368-bdef2720bdde' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9dd9bf30-36e6-45ae-b368-bdef2720bdde' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:35.296 [print] title:Bodemkundig boormonsterprofiel onder INSPIRE
* print title 0.000
15:17:35.297 [print] Bodemkundig boormonsterprofiel onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:35.298 [print] [
  "info@dinoloket.nl",
  "geodesk.cgi@wur.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:35.299 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "Alterra, Wageningen UR",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9dd9bf30-36e6-45ae-b368-bdef2720bdde","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:35.305 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "9dd9bf30-36e6-45ae-b368-bdef2720bdde" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.393
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/16}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:36.699 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"
}
> * print "testing xlinkurl: 0.000
15:17:35.308 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.309 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
15:17:35.590 status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"
}
> * print "testing xlinkurl: 0.000
15:17:35.590 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
15:17:35.591 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.591 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/16
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:17:35.792 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:17:35.793 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:17:35.795 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.795 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.593
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:36.389 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:36.389 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:36.390 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.390 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:36.699 status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.352
Scenario Outline Check edf79e6a-d73d-4def-8d22-0f495cc76a73
Check href links in metadata record van edf79e6a-d73d-4def-8d22-0f495cc76a73
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.343
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:35.506 [print] title:Bronbestanden waterkwaliteit
* print title 0.001
15:17:35.507 [print] Bronbestanden waterkwaliteit
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:35.508 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:35.509 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"edf79e6a-d73d-4def-8d22-0f495cc76a73","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:48 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "edf79e6a-d73d-4def-8d22-0f495cc76a73" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
1.160
Scenario Outline Check 3e57ce43-7707-43ed-a4b9-72b3a6d812f8
Check href links in metadata record van 3e57ce43-7707-43ed-a4b9-72b3a6d812f8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3e57ce43-7707-43ed-a4b9-72b3a6d812f8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.500
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e57ce43-7707-43ed-a4b9-72b3a6d812f8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:35.898 [print] title:Geluidkaart hoofdspoornet 2011 (Lnight)
* print title 0.000
15:17:35.899 [print] Geluidkaart hoofdspoornet 2011 (Lnight)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:35.900 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:35.901 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3e57ce43-7707-43ed-a4b9-72b3a6d812f8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:35.907 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"
]
* def id = "3e57ce43-7707-43ed-a4b9-72b3a6d812f8" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.324
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
15:17:36.232 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"
}
> * print "testing xlinkurl: 0.000
15:17:35.912 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:35.912 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8
> Given url link 0.000
> When method HEAD 0.319
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
15:17:36.232 status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.796
Scenario Outline Check c2225e5d-b46f-4e38-8445-ab10fd40c0dc
Check href links in metadata record van c2225e5d-b46f-4e38-8445-ab10fd40c0dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c2225e5d-b46f-4e38-8445-ab10fd40c0dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.545
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c2225e5d-b46f-4e38-8445-ab10fd40c0dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:36.009 [print] title:Blokindeling Nederlands Continentaal Plat
* print title 0.000
15:17:36.010 [print] Blokindeling Nederlands Continentaal Plat
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:36.011 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:36.013 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c2225e5d-b46f-4e38-8445-ab10fd40c0dc","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:36.020 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"
]
* def id = "c2225e5d-b46f-4e38-8445-ab10fd40c0dc" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.622
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
15:17:36.643 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:17:36.030 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.031 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"
}
> * print "testing xlinkurl: 0.000
15:17:36.332 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.334 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
15:17:36.643 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.603
Scenario Outline Check eu-f297898-2640-44c2-bbe9-c0480da83794
Check href links in metadata record van eu-f297898-2640-44c2-bbe9-c0480da83794
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-f297898-2640-44c2-bbe9-c0480da83794' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-f297898-2640-44c2-bbe9-c0480da83794' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:36.060 [print] title:Hydrografie - Netwerk (INSPIRE geharmoniseerd) - WT
* print title 0.000
15:17:36.060 [print] Hydrografie - Netwerk (INSPIRE geharmoniseerd) - WT
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:36.062 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:36.064 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"eu-f297898-2640-44c2-bbe9-c0480da83794","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:36.071 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "eu-f297898-2640-44c2-bbe9-c0480da83794" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.524
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/8}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:36.596 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794"
}
> * print "testing xlinkurl: 0.000
15:17:36.074 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.075 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"
}
> * print "testing xlinkurl: 0.000
15:17:36.388 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.005
15:17:36.393 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/8
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:17:36.593 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:36.593 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:17:36.595 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.595 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:36.596 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:36.596 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.543
Scenario Outline Check c5c4a6d6-b850-473c-8ab5-af9c2c550809
Check href links in metadata record van c5c4a6d6-b850-473c-8ab5-af9c2c550809
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c5c4a6d6-b850-473c-8ab5-af9c2c550809' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.519
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c5c4a6d6-b850-473c-8ab5-af9c2c550809' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:36.756 [print] title:Administratieve Eenheden
* print title 0.000
15:17:36.756 [print] Administratieve Eenheden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:36.757 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:36.758 [print] organisation: [
  "Kadaster",
  "Kadaster en Openbare Registers",
  "Kadaster en de Openbare Registers"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c5c4a6d6-b850-473c-8ab5-af9c2c550809","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:36.764 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"
]
* def id = "c5c4a6d6-b850-473c-8ab5-af9c2c550809" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.007
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:36.772 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"
}
> * print "testing xlinkurl: 0.000
15:17:36.768 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.769 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:36.770 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76
15:17:36.771 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.779
Scenario Outline Check be6551de-a709-4c6d-a5e2-f63f0cf038ba
Check href links in metadata record van be6551de-a709-4c6d-a5e2-f63f0cf038ba
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'be6551de-a709-4c6d-a5e2-f63f0cf038ba' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be6551de-a709-4c6d-a5e2-f63f0cf038ba' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:17:36.861 [print] title:Amplitude van het getij op de Noordzee
* print title 0.000
15:17:36.861 [print] Amplitude van het getij op de Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:36.863 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:36.864 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"be6551de-a709-4c6d-a5e2-f63f0cf038ba","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:36.870 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"
]
* def id = "be6551de-a709-4c6d-a5e2-f63f0cf038ba" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.627
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
15:17:37.499 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:36.873 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:36.874 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.291
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"
}
> * print "testing xlinkurl: 0.001
15:17:37.168 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.168 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba
> Given url link 0.000
> When method HEAD 0.329
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
15:17:37.499 status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.829
Scenario Outline Check 6050578f-0010-4bfa-b013-c8617b80ba62
Check href links in metadata record van 6050578f-0010-4bfa-b013-c8617b80ba62
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6050578f-0010-4bfa-b013-c8617b80ba62' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.607
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6050578f-0010-4bfa-b013-c8617b80ba62' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:37.207 [print] title:Grondwatersamenstellinggegevens KRW meetronde 2012 onder INSPIRE
* print title 0.000
15:17:37.208 [print] Grondwatersamenstellinggegevens KRW meetronde 2012 onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:37.208 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:37.210 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6050578f-0010-4bfa-b013-c8617b80ba62","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.013
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:37.225 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "6050578f-0010-4bfa-b013-c8617b80ba62" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.600
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:37.828 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"
}
> * print "testing xlinkurl: 0.000
15:17:37.230 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.231 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
15:17:37.511 status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:37.511 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
15:17:37.512 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.512 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:37.828 status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.264
Scenario Outline Check a5f961e9-ebdd-41e2-b8e8-ab33ed340a83
Check href links in metadata record van a5f961e9-ebdd-41e2-b8e8-ab33ed340a83
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a5f961e9-ebdd-41e2-b8e8-ab33ed340a83' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.630
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5f961e9-ebdd-41e2-b8e8-ab33ed340a83' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:37.278 [print] title:Adressen (INSPIRE geharmoniseerd)
* print title 0.000
15:17:37.279 [print] Adressen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:37.280 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:37.281 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a5f961e9-ebdd-41e2-b8e8-ab33ed340a83","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.010
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.005
15:17:37.299 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"
]
* def id = "a5f961e9-ebdd-41e2-b8e8-ab33ed340a83" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.305
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:37.606 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:17:37.303 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.304 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"
}
> * print "testing xlinkurl: 0.000
15:17:37.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.604 [print] testing xlinkurl:http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:37.605 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94
15:17:37.606 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.331
Scenario Outline Check 08b27bf0-e34a-4b30-9eac-5edadfb6a288
Check href links in metadata record van 08b27bf0-e34a-4b30-9eac-5edadfb6a288
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '08b27bf0-e34a-4b30-9eac-5edadfb6a288' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08b27bf0-e34a-4b30-9eac-5edadfb6a288' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.005
15:17:37.284 [print] title:Afgevoerde hoeveelheid afval in 2015 vanuit de industrie
* print title 0.000
15:17:37.284 [print] Afgevoerde hoeveelheid afval in 2015 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:37.285 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:37.288 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"08b27bf0-e34a-4b30-9eac-5edadfb6a288","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:37.293 [print] [
  "https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"
]
* def id = "08b27bf0-e34a-4b30-9eac-5edadfb6a288" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.369
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:37.664 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"
}
> * print "testing xlinkurl: 0.006
15:17:37.303 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
15:17:37.306 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:37.663 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804
15:17:37.663 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.248
Scenario Outline Check 14657c9b-91e4-4355-8563-2911ad0e78e4
Check href links in metadata record van 14657c9b-91e4-4355-8563-2911ad0e78e4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '14657c9b-91e4-4355-8563-2911ad0e78e4' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.624
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '14657c9b-91e4-4355-8563-2911ad0e78e4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:37.401 [print] title:Vervoersnetwerken - Gemeenschappelijke elementen (INSPIRE geharmoniseerd)
* print title 0.000
15:17:37.402 [print] Vervoersnetwerken - Gemeenschappelijke elementen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:37.402 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:37.404 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"14657c9b-91e4-4355-8563-2911ad0e78e4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:37.408 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"
]
* def id = "14657c9b-91e4-4355-8563-2911ad0e78e4" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.310
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:37.719 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:37.416 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:37.417 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"
}
> * print "testing xlinkurl: 0.000
15:17:37.718 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.718 [print] testing xlinkurl:http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:37.719 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66
15:17:37.719 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.276
Scenario Outline Check 58d39928-f502-48c9-a8c1-03244dc181bf
Check href links in metadata record van 58d39928-f502-48c9-a8c1-03244dc181bf
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '58d39928-f502-48c9-a8c1-03244dc181bf' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.556
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58d39928-f502-48c9-a8c1-03244dc181bf' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:37.857 [print] title:Geluidkaart Schiphol 2016 (Lnight)
* print title 0.000
15:17:37.857 [print] Geluidkaart Schiphol 2016 (Lnight)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:37.858 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:37.859 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"58d39928-f502-48c9-a8c1-03244dc181bf","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
15:17:37.864 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"
]
* def id = "58d39928-f502-48c9-a8c1-03244dc181bf" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.354
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 350, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
15:17:38.222 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 350, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"
}
> * print "testing xlinkurl: 0.000
15:17:37.871 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:37.871 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf
> Given url link 0.000
> When method HEAD 0.349
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 350, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
15:17:38.222 status code was: 500, expected: 200, response time: 350, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.168
Scenario Outline Check 25294679-adb9-4c39-a93b-6954ff9414ac
Check href links in metadata record van 25294679-adb9-4c39-a93b-6954ff9414ac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '25294679-adb9-4c39-a93b-6954ff9414ac' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.634
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25294679-adb9-4c39-a93b-6954ff9414ac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:38.138 [print] title:Waterstanden en afvoeren verwacht - Rijkswaterstaat
* print title 0.000
15:17:38.139 [print] Waterstanden en afvoeren verwacht - Rijkswaterstaat
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:38.140 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:38.141 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"25294679-adb9-4c39-a93b-6954ff9414ac","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:38.146 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "25294679-adb9-4c39-a93b-6954ff9414ac" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.762
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 208, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:38.910 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac"
}
> * print "testing xlinkurl: 0.003
15:17:38.153 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.153 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac
> Given url link 0.000
> When method HEAD 0.340
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.001
15:17:38.496 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.496 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.209
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 208, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:17:38.706 status code was: 404, expected: 200, response time: 208, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
15:17:38.706 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 208, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:17:38.707 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.707 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:17:38.908 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:38.908 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:17:38.909 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.909 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:38.910 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:38.910 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.266
Scenario Outline Check b4ae622c-6201-49d8-bd2e-f7fce9206a1e
Check href links in metadata record van b4ae622c-6201-49d8-bd2e-f7fce9206a1e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b4ae622c-6201-49d8-bd2e-f7fce9206a1e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.622
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae622c-6201-49d8-bd2e-f7fce9206a1e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:38.290 [print] title:Gebouwen (INSPIRE geharmoniseerd)
* print title 0.000
15:17:38.290 [print] Gebouwen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:38.291 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:38.292 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b4ae622c-6201-49d8-bd2e-f7fce9206a1e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:17:38.298 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"
]
* def id = "b4ae622c-6201-49d8-bd2e-f7fce9206a1e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.319
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:38.619 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:38.304 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.304 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.293
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"
}
> * print "testing xlinkurl: 0.000
15:17:38.600 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.600 [print] testing xlinkurl:http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3
> Given url link 0.000
> When method HEAD 0.017
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:38.616 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3
15:17:38.617 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.279
Scenario Outline Check e80ad426-1392-4349-9f80-14dae5f1bf57
Check href links in metadata record van e80ad426-1392-4349-9f80-14dae5f1bf57
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e80ad426-1392-4349-9f80-14dae5f1bf57' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.656
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e80ad426-1392-4349-9f80-14dae5f1bf57' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:38.379 [print] title:Kadastrale Percelen (INSPIRE geharmoniseerd)
* print title 0.001
15:17:38.380 [print] Kadastrale Percelen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:38.381 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.003
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:38.385 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e80ad426-1392-4349-9f80-14dae5f1bf57","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:38.389 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"
]
* def id = "e80ad426-1392-4349-9f80-14dae5f1bf57" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.308
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:38.698 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.002
15:17:38.398 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.399 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"
}
> * print "testing xlinkurl: 0.000
15:17:38.697 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.697 [print] testing xlinkurl:http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:38.698 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344
15:17:38.698 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.715
Scenario Outline Check 74aca3eb-c38b-4214-9537-e0abc69e11b5
Check href links in metadata record van 74aca3eb-c38b-4214-9537-e0abc69e11b5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '74aca3eb-c38b-4214-9537-e0abc69e11b5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.664
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74aca3eb-c38b-4214-9537-e0abc69e11b5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:38.497 [print] title:Luchtfoto 2017 25cm RGB open data
* print title 0.000
15:17:38.497 [print] Luchtfoto 2017 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:38.498 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.004
15:17:38.504 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"74aca3eb-c38b-4214-9537-e0abc69e11b5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:38.507 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b017",
  "",
  "",
  ""
]
* def id = "74aca3eb-c38b-4214-9537-e0abc69e11b5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.023
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b017}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.532 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"
}
> * print "testing xlinkurl: 0.002
15:17:38.516 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.517 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b017
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:38.518 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b017
15:17:38.518 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:38.520 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:38.521 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.522 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.523 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:38.524 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:38.525 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.526 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.526 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.527 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:38.528 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:38.529 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.530 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.530 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.531 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:38.531 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.247
Scenario Outline Check d9baa847-4652-4588-abe1-0b050f40f27f
Check href links in metadata record van d9baa847-4652-4588-abe1-0b050f40f27f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd9baa847-4652-4588-abe1-0b050f40f27f' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9baa847-4652-4588-abe1-0b050f40f27f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:38.734 [print] title:Ziekenhuizen in Nederland (september 2013)
* print title 0.000
15:17:38.734 [print] Ziekenhuizen in Nederland (september 2013)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:38.735 [print] [
  "atlas@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:38.735 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d9baa847-4652-4588-abe1-0b050f40f27f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.002
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:38.742 [print] [
  "https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"
]
* def id = "d9baa847-4652-4588-abe1-0b050f40f27f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.364
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:39.108 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"
}
> * print "testing xlinkurl: 0.000
15:17:38.746 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.747 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e
> Given url link 0.000
> When method HEAD 0.360
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:39.107 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e
15:17:39.108 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.131
Scenario Outline Check ed960299-a147-4c1a-bc57-41ff83a2264f
Check href links in metadata record van ed960299-a147-4c1a-bc57-41ff83a2264f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ed960299-a147-4c1a-bc57-41ff83a2264f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.424
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ed960299-a147-4c1a-bc57-41ff83a2264f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:38.929 [print] title:Bodemkaart50000_versie2014
* print title 0.000
15:17:38.929 [print] Bodemkaart50000_versie2014
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:38.930 [print] [
  "fokke.brouwer@wur.nl",
  "GeoDesk@wur.nl",
  "fokke.brouwer@wur.nl",
  "GeoDesk@wur.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.005
15:17:38.937 [print] organisation: [
  "Wageningen Environmental Research",
  "Wageningen Environmental Research (Alterra)",
  "Wageningen Environmental Research",
  "Wageningen Environmental Research (Alterra)",
  "ALTERRA en voorafgaande instituten",
  "ALTERRA en voorafgaande instituten",
  "Alterra",
  "Alterra",
  "Alterra Wageningen UR",
  "Alterra"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ed960299-a147-4c1a-bc57-41ff83a2264f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.012
* print nlinks 0.005
15:17:38.958 [print] [
  "h",
  "t",
  "t",
  "p",
  ":",
  "/",
  "/",
  "s",
  "t",
  "a",
  "n",
  "d",
  "a",
  "r",
  "d",
  "s",
  ".",
  "i",
  "s",
  "o",
  ".",
  "o",
  "r",
  "g",
  "/",
  "i",
  "t",
  "t",
  "f",
  "/",
  "P",
  "u",
  "b",
  "l",
  "i",
  "c",
  "l",
  "y",
  "A",
  "v",
  "a",
  "i",
  "l",
  "a",
  "b",
  "l",
  "e",
  "S",
  "t",
  "a",
  "n",
  "d",
  "a",
  "r",
  "d",
  "s",
  "/",
  "I",
  "S",
  "O",
  "_",
  "1",
  "9",
  "1",
  "3",
  "9",
  "_",
  "S",
  "c",
  "h",
  "e",
  "m",
  "a",
  "s",
  "/",
  "r",
  "e",
  "s",
  "o",
  "u",
  "r",
  "c",
  "e",
  "s",
  "/",
  "u",
  "o",
  "m",
  "/",
  "g",
  "m",
  "x",
  "U",
  "o",
  "m",
  ".",
  "x",
  "m",
  "l",
  "#",
  "m"
]
* def id = "ed960299-a147-4c1a-bc57-41ff83a2264f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.383
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=h}, {link=t}, {link=t}, {link=p}, {link=:}, {link=/}, {link=/}, {link=s}, {link=t}, {link=a}, {link=n}, {link=d}, {link=a}, {link=r}, {link=d}, {link=s}, {link=.}, {link=i}, {link=s}, {link=o}, {link=.}, {link=o}, {link=r}, {link=g}, {link=/}, {link=i}, {link=t}, {link=t}, {link=f}, {link=/}, {link=P}, {link=u}, {link=b}, {link=l}, {link=i}, {link=c}, {link=l}, {link=y}, {link=A}, {link=v}, {link=a}, {link=i}, {link=l}, {link=a}, {link=b}, {link=l}, {link=e}, {link=S}, {link=t}, {link=a}, {link=n}, {link=d}, {link=a}, {link=r}, {link=d}, {link=s}, {link=/}, {link=I}, {link=S}, {link=O}, {link=_}, {link=1}, {link=9}, {link=1}, {link=3}, {link=9}, {link=_}, {link=S}, {link=c}, {link=h}, {link=e}, {link=m}, {link=a}, {link=s}, {link=/}, {link=r}, {link=e}, {link=s}, {link=o}, {link=u}, {link=r}, {link=c}, {link=e}, {link=s}, {link=/}, {link=u}, {link=o}, {link=m}, {link=/}, {link=g}, {link=m}, {link=x}, {link=U}, {link=o}, {link=m}, {link=.}, {link=x}, {link=m}, {link=l}, {link=#}, {link=m}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"y"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"A"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"I"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"O"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"U"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"#"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.342 feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:17:38.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.963 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.963 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:17:38.964 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.001
15:17:38.964 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.966 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.966 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.967 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:17:38.967 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:17:38.967 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.968 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.968 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.971 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:17:38.971 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:17:38.971 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.972 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.972 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.972 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:17:38.972 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:38.972 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.976 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.976 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:38.976 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:38.976 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:38.977 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.977 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.977 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:38.977 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:38.978 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.978 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.978 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.979 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:38.979 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:17:38.979 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.980 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.980 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.980 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:38.980 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:17:38.980 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.981 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.981 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.981 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:17:38.982 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.001
15:17:38.982 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.983 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.983 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.983 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:38.983 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:17:38.984 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.984 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.985 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.992 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:17:38.992 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.003
15:17:38.992 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.996 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:38.996 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:38.996 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:17:38.997 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.003
15:17:38.997 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.001 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.001 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:39.002 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:17:39.002 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.002 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.003 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.003 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:39.003 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.005
15:17:39.003 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.009 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.010 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.010 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:17:39.010 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:17:39.010 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.011 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.011 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.014 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:39.014 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:17:39.014 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.015 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.015 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.016 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:17:39.016 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.001
15:17:39.018 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.019 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.019 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.021 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:17:39.021 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
15:17:39.021 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.025 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.026 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.028 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:39.030 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.001
15:17:39.032 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.033 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.034 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.035 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:17:39.036 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.001
15:17:39.037 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.038 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.039 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.039 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:17:39.039 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:17:39.040 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.041 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.041 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.042 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:17:39.042 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:17:39.043 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.043 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.044 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.045 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:39.046 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:17:39.048 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.049 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.050 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.052 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:17:39.053 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:39.055 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.056 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.056 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.058 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:39.058 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.002
15:17:39.058 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.061 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.061 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:17:39.061 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:17:39.062 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.063 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.063 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.063 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:17:39.063 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:17:39.064 feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.064 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.065 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.065 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:17:39.065 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
15:17:39.065 feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.066 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.067 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
15:17:39.067 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:39.067 feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.068 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.068 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.068 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:39.068 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "P"
}
> * print "testing xlinkurl: 0.000
15:17:39.069 feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.069 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.069 [print] testing xlinkurl:P
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.070 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: P
15:17:39.070 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:17:39.070 feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.071 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.071 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.071 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:17:39.071 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[32] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "b"
}
> * print "testing xlinkurl: 0.004
15:17:39.071 feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.076 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.076 [print] testing xlinkurl:b
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.077 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: b
15:17:39.077 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[33] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:17:39.077 feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.077 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.077 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.078 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:17:39.078 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[34] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:17:39.078 feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.079 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.079 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:17:39.079 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[35] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:17:39.080 feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.081 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.081 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:17:39.081 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[36] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:17:39.082 feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.082 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.082 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.083 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:17:39.083 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[37] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "y"
}
> * print "testing xlinkurl: 0.000
15:17:39.083 feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.083 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.084 [print] testing xlinkurl:y
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.084 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: y
15:17:39.084 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[38] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "A"
}
> * print "testing xlinkurl: 0.000
15:17:39.084 feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"y"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.085 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.085 [print] testing xlinkurl:A
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.085 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: A
15:17:39.085 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[39] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "v"
}
> * print "testing xlinkurl: 0.000
15:17:39.085 feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"A"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.086 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.086 [print] testing xlinkurl:v
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.086 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: v
15:17:39.086 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[40] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:17:39.087 feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.087 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.087 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.088 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:39.088 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[41] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:17:39.088 feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.089 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.089 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.089 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:17:39.090 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[42] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:17:39.090 feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.090 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.090 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.091 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:17:39.091 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[43] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.006
15:17:39.091 feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.098 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.098 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.099 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:39.099 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[44] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "b"
}
> * print "testing xlinkurl: 0.000
15:17:39.099 feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.099 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.100 [print] testing xlinkurl:b
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.100 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: b
15:17:39.100 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[45] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:17:39.100 feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.101 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.101 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.102 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:17:39.102 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[46] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.002
15:17:39.102 feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.107 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.108 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.108 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:17:39.108 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[47] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
15:17:39.108 feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.109 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.109 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.110 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:17:39.110 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[48] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:17:39.110 feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.112 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.113 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:17:39.113 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[49] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:17:39.116 feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.117 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.117 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.117 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:39.117 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[50] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:17:39.118 feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.118 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.118 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.119 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:17:39.119 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[51] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:17:39.119 feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.120 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.120 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:17:39.120 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[52] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.011
15:17:39.124 feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.135 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.135 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.135 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:39.135 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[53] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:17:39.136 feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.136 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.136 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.137 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:39.137 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[54] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.002
15:17:39.137 feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.139 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.140 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.140 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:17:39.140 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[55] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:17:39.140 feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.141 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.141 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.141 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:39.141 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[56] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
15:17:39.141 feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.143 [print]
> * def link = __arg.link 0.007
> * print "testing xlinkurl:" + link 0.000
15:17:39.151 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.153 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:39.153 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[57] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "I"
}
> * print "testing xlinkurl: 0.001
15:17:39.153 feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.155 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.155 [print] testing xlinkurl:I
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.158 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: I
15:17:39.158 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[58] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
15:17:39.159 feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"I"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.159 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.160 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.160 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:17:39.160 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[59] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "O"
}
> * print "testing xlinkurl: 0.000
15:17:39.160 feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.161 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.161 [print] testing xlinkurl:O
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.161 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: O
15:17:39.161 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[60] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "_"
}
> * print "testing xlinkurl: 0.001
15:17:39.162 feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"O"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.163 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.163 [print] testing xlinkurl:_
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.164 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: _
15:17:39.164 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[61] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.003
15:17:39.164 feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.168 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.168 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.169 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
15:17:39.169 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[62] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "9"
}
> * print "testing xlinkurl: 0.000
15:17:39.169 feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.169 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.170 [print] testing xlinkurl:9
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.170 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 9
15:17:39.170 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[63] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.005
15:17:39.170 feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.176 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.176 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.176 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
15:17:39.176 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[64] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "3"
}
> * print "testing xlinkurl: 0.000
15:17:39.176 feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.177 [print] testing xlinkurl:3
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.177 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 3
15:17:39.178 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[65] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "9"
}
> * print "testing xlinkurl: 0.000
15:17:39.178 feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.178 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.178 [print] testing xlinkurl:9
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.179 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 9
15:17:39.179 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[66] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "_"
}
> * print "testing xlinkurl: 0.000
15:17:39.179 feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.180 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.180 [print] testing xlinkurl:_
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.180 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: _
15:17:39.180 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[67] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.002
15:17:39.180 feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.183 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.183 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.183 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:17:39.184 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[68] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.003
15:17:39.190 feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.194 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.194 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.195 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:17:39.195 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[69] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:17:39.195 feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.195 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.195 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.196 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:17:39.198 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[70] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.006
15:17:39.198 feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.205 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.205 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.208 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:17:39.208 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[71] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:17:39.208 feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.209 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.209 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.008
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.217 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:17:39.217 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[72] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:17:39.217 feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.218 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.219 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:17:39.219 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[73] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.008
15:17:39.219 feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.228 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.228 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.229 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:39.229 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[74] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:39.229 feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.230 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.230 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.237 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:39.237 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[75] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
15:17:39.237 feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.239 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.240 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.240 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:39.240 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[76] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.003
15:17:39.241 feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.244 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.245 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:17:39.245 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[77] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
15:17:39.245 feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.246 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.247 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.247 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:39.247 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[78] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.001
15:17:39.248 feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.250 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.250 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.252 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:17:39.252 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[79] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.004
15:17:39.256 feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.261 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.262 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.262 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:17:39.262 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[80] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:17:39.262 feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.263 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.263 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.263 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:39.263 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[81] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:17:39.264 feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.264 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.264 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.265 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:17:39.265 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[82] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:17:39.265 feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.265 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.266 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.268 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:17:39.268 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[83] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.002
15:17:39.268 feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.271 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.271 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:39.271 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[84] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:39.271 feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.272 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.272 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.275 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:39.275 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[85] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:17:39.275 feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.276 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.276 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.277 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:17:39.277 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[86] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.005
15:17:39.277 feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.283 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.283 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.284 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:17:39.284 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[87] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:17:39.284 feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.284 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.285 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.285 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:17:39.285 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[88] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:17:39.286 feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.286 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.286 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.287 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:17:39.287 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[89] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:17:39.287 feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.288 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.288 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.288 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:17:39.288 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[90] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.004
15:17:39.288 feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.293 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.293 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.293 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:17:39.293 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[91] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.000
15:17:39.295 feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.299 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.300 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.300 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
15:17:39.301 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[92] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "U"
}
> * print "testing xlinkurl: 0.000
15:17:39.301 feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.302 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.302 [print] testing xlinkurl:U
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.303 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: U
15:17:39.303 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[93] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.001
15:17:39.303 feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"U"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.305 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.305 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.306 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:17:39.306 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[94] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.001
15:17:39.306 feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.308 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.308 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.308 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:17:39.308 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[95] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.008
15:17:39.309 feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.317 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.318 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:17:39.318 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[96] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.001
15:17:39.319 feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.320 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.321 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.321 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
15:17:39.321 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[97] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.001
15:17:39.322 feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.323 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.324 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.325 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:17:39.325 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[98] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.002
15:17:39.325 feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.328 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:39.330 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.330 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:17:39.330 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[99] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "#"
}
> * print "testing xlinkurl: 0.003
15:17:39.330 feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.334 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.335 [print] testing xlinkurl:#
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.336 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: #
15:17:39.336 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[100] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.002
15:17:39.336 feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"#"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.340 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.340 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:39.342 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:17:39.342 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.258
Scenario Outline Check d24ccb35-e9d2-41bf-b231-43083fc0c76d
Check href links in metadata record van d24ccb35-e9d2-41bf-b231-43083fc0c76d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd24ccb35-e9d2-41bf-b231-43083fc0c76d' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.523
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd24ccb35-e9d2-41bf-b231-43083fc0c76d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:39.441 [print] title:LCP emissies (Richtlijn Industriële emissies) 2016
* print title 0.000
15:17:39.441 [print] LCP emissies (Richtlijn Industriële emissies) 2016
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:39.441 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:39.442 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d24ccb35-e9d2-41bf-b231-43083fc0c76d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:39.447 [print] [
  "https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"
]
* def id = "d24ccb35-e9d2-41bf-b231-43083fc0c76d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.363
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:39.813 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"
}
> * print "testing xlinkurl: 0.000
15:17:39.456 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.456 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:39.813 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3
15:17:39.813 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.266
Scenario Outline Check 36a7e8cb-8300-4602-93d2-135943365a6f
Check href links in metadata record van 36a7e8cb-8300-4602-93d2-135943365a6f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '36a7e8cb-8300-4602-93d2-135943365a6f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.536
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '36a7e8cb-8300-4602-93d2-135943365a6f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:39.647 [print] title:Monitoring stations (Nitraatrichtlijn) diepe filters
* print title 0.000
15:17:39.647 [print] Monitoring stations (Nitraatrichtlijn) diepe filters
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:39.648 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:39.650 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"36a7e8cb-8300-4602-93d2-135943365a6f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:39.655 [print] [
  "https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"
]
* def id = "36a7e8cb-8300-4602-93d2-135943365a6f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:40.017 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"
}
> * print "testing xlinkurl: 0.000
15:17:39.658 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.659 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:40.016 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f
15:17:40.017 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.820
Scenario Outline Check adn73c4a-ef03-4785-b7f6-942e86b385f5
Check href links in metadata record van adn73c4a-ef03-4785-b7f6-942e86b385f5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'adn73c4a-ef03-4785-b7f6-942e86b385f5' 0.006
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.558
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn73c4a-ef03-4785-b7f6-942e86b385f5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:39.912 [print] title:Bathymetrie Nederland - kust
* print title 0.000
15:17:39.913 [print] Bathymetrie Nederland - kust
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:39.914 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:39.915 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"adn73c4a-ef03-4785-b7f6-942e86b385f5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.000
15:17:39.927 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "adn73c4a-ef03-4785-b7f6-942e86b385f5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.621
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:40.551 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5"
}
> * print "testing xlinkurl: 0.000
15:17:39.933 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:39.934 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5
> Given url link 0.000
> When method HEAD 0.411
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:17:40.348 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.349 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:17:40.550 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:40.550 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:17:40.550 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.551 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:40.551 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:40.551 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.995
Scenario Outline Check 9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c
Check href links in metadata record van 9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.619
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:40.354 [print] title:Zwemwater (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* print title 0.000
15:17:40.355 [print] Zwemwater (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:40.356 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:40.357 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:40.362 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.684
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:41.049 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:40.367 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.368 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.338
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e"
}
> * print "testing xlinkurl: 0.000
15:17:40.707 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.707 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e
> Given url link 0.000
> When method HEAD 0.291
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:41.000 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.001 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.044
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:41.046 status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:41.046 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:41.047 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.047 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:41.048 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:41.048 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.212
Scenario Outline Check 34e6165f-1269-48d1-b255-0f05d163d692
Check href links in metadata record van 34e6165f-1269-48d1-b255-0f05d163d692
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '34e6165f-1269-48d1-b255-0f05d163d692' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.651
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34e6165f-1269-48d1-b255-0f05d163d692' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:40.468 [print] title:Geluidszones rondom bedrijventerreinen zowel provinciaal als gemeentelijk
* print title 0.000
15:17:40.469 [print] Geluidszones rondom bedrijventerreinen zowel provinciaal als gemeentelijk
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:40.470 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:40.471 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"34e6165f-1269-48d1-b255-0f05d163d692","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:40.476 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "34e6165f-1269-48d1-b255-0f05d163d692" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.776
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:41.254 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:40.480 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.481 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692"
}
> * print "testing xlinkurl: 0.000
15:17:40.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.776 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692
> Given url link 0.000
> When method HEAD 0.441
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:41.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.219 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.034
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:41.253 status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:41.253 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:41.254 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.254 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:41.254 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:41.254 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.299
Scenario Outline Check 41023936-009d-48ec-a90d-c966895463c1
Check href links in metadata record van 41023936-009d-48ec-a90d-c966895463c1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '41023936-009d-48ec-a90d-c966895463c1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.606
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '41023936-009d-48ec-a90d-c966895463c1' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:40.628 [print] title:Geluidszones rondom vliegvelden
* print title 0.001
15:17:40.628 [print] Geluidszones rondom vliegvelden
* def email = get response //electronicMailAddress/CharacterString 0.004
* print email 0.000
15:17:40.634 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:40.635 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"41023936-009d-48ec-a90d-c966895463c1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:40.640 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "41023936-009d-48ec-a90d-c966895463c1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.839
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:41.482 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:40.644 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.645 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.302
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1"
}
> * print "testing xlinkurl: 0.001
15:17:40.949 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.950 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1
> Given url link 0.000
> When method HEAD 0.487
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:41.438 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.439 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.040
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:41.480 status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:41.480 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:41.481 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.481 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:41.482 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:41.482 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.535
Scenario Outline Check ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb
Check href links in metadata record van ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:40.690 [print] title:Wijk- en Buurtkaart 2018 versie 2
* print title 0.000
15:17:40.690 [print] Wijk- en Buurtkaart 2018 versie 2
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:40.691 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:40.692 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:40.696 [print] [
  ""
]
* def id = "ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.007
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:40.704 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:40.701 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:40.702 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:40.703 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:40.703 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.606
Scenario Outline Check eu-2c7040b-c448-451b-bf15-f2416ecaadd1
Check href links in metadata record van eu-2c7040b-c448-451b-bf15-f2416ecaadd1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-2c7040b-c448-451b-bf15-f2416ecaadd1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.510
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-2c7040b-c448-451b-bf15-f2416ecaadd1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:41.066 [print] title:Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd) - WT
* print title 0.000
15:17:41.066 [print] Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd) - WT
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:41.068 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:41.069 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"eu-2c7040b-c448-451b-bf15-f2416ecaadd1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:41.074 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "eu-2c7040b-c448-451b-bf15-f2416ecaadd1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.544
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:41.619 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1"
}
> * print "testing xlinkurl: 0.000
15:17:41.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.080 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1
> Given url link 0.000
> When method HEAD 0.334
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
15:17:41.416 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.417 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:41.617 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:41.617 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:41.618 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.619 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:41.619 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:41.619 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.809
Scenario Outline Check 2daad588-11ef-47de-9832-6fe2c3b93e6d
Check href links in metadata record van 2daad588-11ef-47de-9832-6fe2c3b93e6d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2daad588-11ef-47de-9832-6fe2c3b93e6d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.594
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2daad588-11ef-47de-9832-6fe2c3b93e6d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:41.648 [print] title:Overstromingsrisicokaarten
* print title 0.000
15:17:41.648 [print] Overstromingsrisicokaarten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:41.649 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:41.651 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"2daad588-11ef-47de-9832-6fe2c3b93e6d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.024
* print nlinks 0.008
15:17:41.687 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "2daad588-11ef-47de-9832-6fe2c3b93e6d" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.589
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 73, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.278 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d"
}
> * print "testing xlinkurl: 0.001
15:17:41.695 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:41.697 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d
> Given url link 0.000
> When method HEAD 0.499
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:42.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.197 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.073
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 73, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.271 status code was: 404, expected: 200, response time: 73, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:42.272 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 73, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.275 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.275 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.276 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:42.277 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.699
Scenario Outline Check bc2c53f6-c908-4d7c-a6c0-78d9a2855640
Check href links in metadata record van bc2c53f6-c908-4d7c-a6c0-78d9a2855640
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'bc2c53f6-c908-4d7c-a6c0-78d9a2855640' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.592
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc2c53f6-c908-4d7c-a6c0-78d9a2855640' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:41.656 [print] title:Overstromingsgevaarkaarten
* print title 0.000
15:17:41.657 [print] Overstromingsgevaarkaarten
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:17:41.660 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:41.663 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"bc2c53f6-c908-4d7c-a6c0-78d9a2855640","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.005
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.003
15:17:41.678 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "bc2c53f6-c908-4d7c-a6c0-78d9a2855640" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.543
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.223 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640"
}
> * print "testing xlinkurl: 0.007
15:17:41.689 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.001
15:17:41.691 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640
> Given url link 0.000
> When method HEAD 0.481
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.001
15:17:42.175 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.175 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.038
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.214 status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:42.215 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.216 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.217 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.218 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:42.223 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.497
Scenario Outline Check wt-f5eb-b09f-4f6d-8397-8878a1b86238
Check href links in metadata record van wt-f5eb-b09f-4f6d-8397-8878a1b86238
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-f5eb-b09f-4f6d-8397-8878a1b86238' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.524
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:41.784 [print] title:Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2011 (INSPIRE geharmoniseerd)
* print title 0.000
15:17:41.785 [print] Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2011 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:41.787 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:41.789 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"wt-f5eb-b09f-4f6d-8397-8878a1b86238","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:17:41.795 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "wt-f5eb-b09f-4f6d-8397-8878a1b86238" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.982
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 448, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:42.778 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 448, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238"
}
> * print "testing xlinkurl: 0.000
15:17:41.801 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:41.803 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238
> Given url link 0.000
> When method HEAD 0.321
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:17:42.127 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.128 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:42.329 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:42.329 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:42.330 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.330 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 448, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:42.778 status code was: 500, expected: 200, response time: 448, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.457
Scenario Outline Check wt-3730-e750-485a-9c0c-39bf9be72cf9
Check href links in metadata record van wt-3730-e750-485a-9c0c-39bf9be72cf9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-3730-e750-485a-9c0c-39bf9be72cf9' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.587
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-3730-e750-485a-9c0c-39bf9be72cf9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:41.866 [print] title:Menselijke gezondheid en veiligheid -  geluidbelasting rijkswegen 2006 (INSPIRE geharmoniseerd)
* print title 0.000
15:17:41.866 [print] Menselijke gezondheid en veiligheid -  geluidbelasting rijkswegen 2006 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:41.867 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:41.868 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"wt-3730-e750-485a-9c0c-39bf9be72cf9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:41.874 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "wt-3730-e750-485a-9c0c-39bf9be72cf9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.931
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 407, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:42.806 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 407, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9"
}
> * print "testing xlinkurl: 0.000
15:17:41.878 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:41.878 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:17:42.196 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.197 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:42.397 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:42.397 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:42.398 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.399 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.407
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 407, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:42.806 status code was: 500, expected: 200, response time: 407, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.200
Scenario Outline Check 998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
Check href links in metadata record van 998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '998ba1dc-f6a6-49a3-a021-51f30d9b1d0e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.523
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '998ba1dc-f6a6-49a3-a021-51f30d9b1d0e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:42.009 [print] title:Wet Ammoniak en Veehouderij gebieden
* print title 0.000
15:17:42.009 [print] Wet Ammoniak en Veehouderij gebieden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:42.010 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:42.012 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"998ba1dc-f6a6-49a3-a021-51f30d9b1d0e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:42.018 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "998ba1dc-f6a6-49a3-a021-51f30d9b1d0e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.834
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.854 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:42.022 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.022 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.289
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e"
}
> * print "testing xlinkurl: 0.000
15:17:42.313 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.313 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
> Given url link 0.000
> When method HEAD 0.483
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:42.798 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.798 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.054
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.852 status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:42.853 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.854 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.854 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:42.854 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.173
Scenario Outline Check c7d8d77b-8c47-4309-8c58-9b12b086407f
Check href links in metadata record van c7d8d77b-8c47-4309-8c58-9b12b086407f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c7d8d77b-8c47-4309-8c58-9b12b086407f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.546
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7d8d77b-8c47-4309-8c58-9b12b086407f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.003
15:17:42.172 [print] title:Natuurnetwerk Nederland
* print title 0.000
15:17:42.172 [print] Natuurnetwerk Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:42.175 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.002
15:17:42.179 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c7d8d77b-8c47-4309-8c58-9b12b086407f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:42.184 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "c7d8d77b-8c47-4309-8c58-9b12b086407f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.807
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.994 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:42.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.189 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.287
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f"
}
> * print "testing xlinkurl: 0.000
15:17:42.479 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.479 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f
> Given url link 0.000
> When method HEAD 0.465
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:42.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.946 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.987 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:17:42.988 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:42.990 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.990 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:42.992 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:42.992 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.297
Scenario Outline Check krw2006-68b5-4ff3-94a4-9c24109ffd5e
Check href links in metadata record van krw2006-68b5-4ff3-94a4-9c24109ffd5e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw2006-68b5-4ff3-94a4-9c24109ffd5e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.610
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw2006-68b5-4ff3-94a4-9c24109ffd5e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:42.839 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 vlakken
* print title 0.000
15:17:42.839 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:42.841 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:42.842 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw2006-68b5-4ff3-94a4-9c24109ffd5e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:42.847 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw2006-68b5-4ff3-94a4-9c24109ffd5e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.842
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:43.691 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e"
}
> * print "testing xlinkurl: 0.000
15:17:42.857 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.857 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e
> Given url link 0.000
> When method HEAD 0.320
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:43.180 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.181 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:43.381 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:43.381 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:43.382 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.383 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:43.689 status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:43.689 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:43.690 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.690 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:43.690 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:43.690 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.654
Scenario Outline Check 710c381c-ab2d-45d5-a45d-af2eba811e5f
Check href links in metadata record van 710c381c-ab2d-45d5-a45d-af2eba811e5f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '710c381c-ab2d-45d5-a45d-af2eba811e5f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.587
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710c381c-ab2d-45d5-a45d-af2eba811e5f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:42.870 [print] title:Nationaal Hydrologisch Instrumentarium (NHI) - netwerkschematisatie
* print title 0.000
15:17:42.870 [print] Nationaal Hydrologisch Instrumentarium (NHI) - netwerkschematisatie
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:42.872 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:42.873 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"710c381c-ab2d-45d5-a45d-af2eba811e5f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:17:42.880 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "710c381c-ab2d-45d5-a45d-af2eba811e5f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.528
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/8}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:43.409 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f"
}
> * print "testing xlinkurl: 0.000
15:17:42.884 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:42.885 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f
> Given url link 0.000
> When method HEAD 0.319
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"
}
> * print "testing xlinkurl: 0.001
15:17:43.206 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.207 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/8
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:17:43.407 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:43.408 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:17:43.409 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.409 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:43.409 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:43.409 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.195
Scenario Outline Check cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
Check href links in metadata record van cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:43.299 [print] title:Stiltegebieden
* print title 0.000
15:17:43.299 [print] Stiltegebieden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:43.301 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:43.302 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:43.308 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.836
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:44.145 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:43.312 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.312 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.286
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5"
}
> * print "testing xlinkurl: 0.000
15:17:43.601 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.601 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
> Given url link 0.000
> When method HEAD 0.486
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:44.089 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.089 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.047
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:44.137 status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:17:44.139 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:44.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.141 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:44.143 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:44.143 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.151
Scenario Outline Check f0821bfe-5a0a-11e9-8647-d663bd873d93
Check href links in metadata record van f0821bfe-5a0a-11e9-8647-d663bd873d93
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f0821bfe-5a0a-11e9-8647-d663bd873d93' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.555
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0821bfe-5a0a-11e9-8647-d663bd873d93' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:43.365 [print] title:NB-wetgebieden buiten Natura 2000
* print title 0.000
15:17:43.366 [print] NB-wetgebieden buiten Natura 2000
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:43.367 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:43.368 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f0821bfe-5a0a-11e9-8647-d663bd873d93","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:43.373 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "f0821bfe-5a0a-11e9-8647-d663bd873d93" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.796
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:44.169 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:43.377 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.378 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93"
}
> * print "testing xlinkurl: 0.000
15:17:43.676 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.676 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93
> Given url link 0.000
> When method HEAD 0.445
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:44.123 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.124 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:44.163 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:44.164 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:44.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.167 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:44.168 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:44.169 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.258
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbeab
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbeab
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeab' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.557
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeab' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:43.415 [print] title:Kaderrichtlijn Water - Stroomgebieddistricten Nederland EU2015
* print title 0.000
15:17:43.415 [print] Kaderrichtlijn Water - Stroomgebieddistricten Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:43.416 [print] [
  "servicedesk@ihw.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:43.417 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbeab","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.004
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:43.425 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeab" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.847
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:44.273 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab"
}
> * print "testing xlinkurl: 0.000
15:17:43.430 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.430 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
15:17:43.741 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.741 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:43.942 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:43.943 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:43.945 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.946 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:44.270 status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.002
15:17:44.270 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:44.272 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.272 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:44.273 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:44.273 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.213
Scenario Outline Check 2e31680f-68b5-4ff3-94a4-9c24109ffd5e
Check href links in metadata record van 2e31680f-68b5-4ff3-94a4-9c24109ffd5e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2e31680f-68b5-4ff3-94a4-9c24109ffd5e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.537
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e31680f-68b5-4ff3-94a4-9c24109ffd5e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:43.536 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 vlakken
* print title 0.000
15:17:43.537 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:43.539 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:43.541 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"2e31680f-68b5-4ff3-94a4-9c24109ffd5e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:43.546 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "2e31680f-68b5-4ff3-94a4-9c24109ffd5e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.833
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:44.380 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e"
}
> * print "testing xlinkurl: 0.000
15:17:43.549 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.550 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:43.863 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.864 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:44.064 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:44.064 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:44.065 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.066 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:44.376 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:44.376 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:44.377 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
15:17:44.379 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:44.379 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:44.379 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.248
Scenario Outline Check 622a632a-c57b-44a2-83a4-e51223d5f15g
Check href links in metadata record van 622a632a-c57b-44a2-83a4-e51223d5f15g
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '622a632a-c57b-44a2-83a4-e51223d5f15g' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.548
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '622a632a-c57b-44a2-83a4-e51223d5f15g' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:43.962 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 lijnen
* print title 0.000
15:17:43.962 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:43.963 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:43.965 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"622a632a-c57b-44a2-83a4-e51223d5f15g","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:43.970 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "622a632a-c57b-44a2-83a4-e51223d5f15g" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.846
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 321, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:44.818 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g"
}
> * print "testing xlinkurl: 0.000
15:17:43.974 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:43.974 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:44.290 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.290 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:44.490 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.002
15:17:44.491 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:44.495 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.495 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.321
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 321, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:44.817 status code was: 500, expected: 200, response time: 321, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:44.817 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 321, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:44.817 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.817 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:44.818 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:44.818 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.290
Scenario Outline Check krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
Check href links in metadata record van krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw-f7bb2351-9788-42ea-a58b-a5ee1842304e' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.548
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw-f7bb2351-9788-42ea-a58b-a5ee1842304e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:44.246 [print] title:Kaderrichtlijn Water - Stroomgebieddistricten Nederland 2019 vlakken
* print title 0.000
15:17:44.246 [print] Kaderrichtlijn Water - Stroomgebieddistricten Nederland 2019 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:44.247 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:44.248 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw-f7bb2351-9788-42ea-a58b-a5ee1842304e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.003
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:44.255 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw-f7bb2351-9788-42ea-a58b-a5ee1842304e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.866
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 227, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:45.123 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e"
}
> * print "testing xlinkurl: 0.006
15:17:44.270 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.270 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:44.585 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.585 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.227
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 227, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:44.812 status code was: 404, expected: 200, response time: 227, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:44.812 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 227, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:44.813 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.813 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.121 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:45.121 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.123 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.123 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:45.123 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:45.123 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.288
Scenario Outline Check a1960e70-22f4-4fd9-91a8-b605c6ceda3e
Check href links in metadata record van a1960e70-22f4-4fd9-91a8-b605c6ceda3e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a1960e70-22f4-4fd9-91a8-b605c6ceda3e' 0.005
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1960e70-22f4-4fd9-91a8-b605c6ceda3e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:44.673 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 riviernetwerk
* print title 0.000
15:17:44.673 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 riviernetwerk
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:44.674 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.003
15:17:44.679 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a1960e70-22f4-4fd9-91a8-b605c6ceda3e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:44.686 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "a1960e70-22f4-4fd9-91a8-b605c6ceda3e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.875
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.562 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e"
}
> * print "testing xlinkurl: 0.000
15:17:44.690 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.691 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e
> Given url link 0.000
> When method HEAD 0.356
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:45.049 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.049 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.249 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:45.249 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.250 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.250 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.562 status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.412
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbeag
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbeag
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeag' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.658
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeag' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:44.834 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 lijnen
* print title 0.000
15:17:44.835 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:44.836 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:44.838 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Informatiehuis Water"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbeag","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:44.843 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeag" 0.005
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.869
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 340, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:45.718 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag"
}
> * print "testing xlinkurl: 0.000
15:17:44.851 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.851 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:45.171 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.171 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.372 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
15:17:45.373 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.375 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.375 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.341
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 340, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.717 status code was: 500, expected: 200, response time: 340, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:45.717 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 340, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.717 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.717 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:45.718 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:45.718 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.259
Scenario Outline Check krw2006-c57b-44a2-83a4-e51223d5f15g
Check href links in metadata record van krw2006-c57b-44a2-83a4-e51223d5f15g
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw2006-c57b-44a2-83a4-e51223d5f15g' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw2006-c57b-44a2-83a4-e51223d5f15g' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:44.819 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 lijnen
* print title 0.000
15:17:44.819 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.003
* print email 0.002
15:17:44.826 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:44.827 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw2006-c57b-44a2-83a4-e51223d5f15g","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.013
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:44.845 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw2006-c57b-44a2-83a4-e51223d5f15g" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.848
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:45.694 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g"
}
> * print "testing xlinkurl: 0.001
15:17:44.854 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:44.856 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:45.172 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.173 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.374 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:45.374 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.375 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.375 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.692 status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:45.693 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.693 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.693 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:45.694 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:45.694 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.211
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbeac
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbeac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeac' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.548
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:44.934 [print] title:Kaderrichtlijn Water - Deelstroomgebieden Nederland EU2015
* print title 0.000
15:17:44.934 [print] Kaderrichtlijn Water - Deelstroomgebieden Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:44.935 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:44.936 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbeac","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:44.946 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeac" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.824
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.771 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac"
}
> * print "testing xlinkurl: 0.000
15:17:44.950 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:44.951 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:45.259 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.259 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.459 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:45.459 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:45.460 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.461 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:45.771 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.257
Scenario Outline Check 891ddc2d-8949-4a45-be96-c65b87c41f13
Check href links in metadata record van 891ddc2d-8949-4a45-be96-c65b87c41f13
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '891ddc2d-8949-4a45-be96-c65b87c41f13' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '891ddc2d-8949-4a45-be96-c65b87c41f13' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:45.362 [print] title:Kaderrichtlijn Water - Monitoringlocaties Nederland EU2015
* print title 0.000
15:17:45.362 [print] Kaderrichtlijn Water - Monitoringlocaties Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:45.363 [print] [
  "servicedesk@ihw.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:45.364 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"891ddc2d-8949-4a45-be96-c65b87c41f13","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:45.370 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "891ddc2d-8949-4a45-be96-c65b87c41f13" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.857
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:46.229 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13"
}
> * print "testing xlinkurl: 0.000
15:17:45.379 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.380 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13
> Given url link 0.000
> When method HEAD 0.328
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
15:17:45.710 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.710 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:17:45.910 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:45.910 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:17:45.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.912 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.316
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:46.229 status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.540
Scenario Outline Check 26103042-50a1-4ee5-9c5b-857a2f8b7680
Check href links in metadata record van 26103042-50a1-4ee5-9c5b-857a2f8b7680
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '26103042-50a1-4ee5-9c5b-857a2f8b7680' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26103042-50a1-4ee5-9c5b-857a2f8b7680' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:45.639 [print] title:Wijk- en Buurtkaart 2017 versie 3
* print title 0.000
15:17:45.639 [print] Wijk- en Buurtkaart 2017 versie 3
* def email = get response //electronicMailAddress/CharacterString 0.004
* print email 0.000
15:17:45.644 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:45.646 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"26103042-50a1-4ee5-9c5b-857a2f8b7680","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:45.653 [print] [
  ""
]
* def id = "26103042-50a1-4ee5-9c5b-857a2f8b7680" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.006
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:45.661 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:45.657 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:45.657 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:45.659 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:45.659 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.693
Scenario Outline Check a9b7026e-0a81-4813-93bd-ba49e6f28502
Check href links in metadata record van a9b7026e-0a81-4813-93bd-ba49e6f28502
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a9b7026e-0a81-4813-93bd-ba49e6f28502' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.556
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9b7026e-0a81-4813-93bd-ba49e6f28502' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:46.123 [print] title:NWB - Wegen
* print title 0.000
15:17:46.124 [print] NWB - Wegen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:46.124 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rws.n"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:46.125 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a9b7026e-0a81-4813-93bd-ba49e6f28502","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.003
15:17:46.133 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "a9b7026e-0a81-4813-93bd-ba49e6f28502" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.063
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.198 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502"
}
> * print "testing xlinkurl: 0.000
15:17:46.138 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.138 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502
> Given url link 0.000
> When method HEAD 0.328
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.001
15:17:46.468 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.469 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.206
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:46.676 status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:17:46.676 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:17:46.677 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.677 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:46.878 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:46.878 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:17:46.878 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.879 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.196 status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:47.196 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.197 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.197 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:47.198 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.565
Scenario Outline Check 6cde2ce7-3ecd-4785-b7b8-d62c3381efe9
Check href links in metadata record van 6cde2ce7-3ecd-4785-b7b8-d62c3381efe9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6cde2ce7-3ecd-4785-b7b8-d62c3381efe9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6cde2ce7-3ecd-4785-b7b8-d62c3381efe9' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:46.240 [print] title:Wijk- en Buurtkaart 2016 versie 3
* print title 0.000
15:17:46.240 [print] Wijk- en Buurtkaart 2016 versie 3
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:46.242 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:46.244 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6cde2ce7-3ecd-4785-b7b8-d62c3381efe9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:46.249 [print] [
  ""
]
* def id = "6cde2ce7-3ecd-4785-b7b8-d62c3381efe9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.006
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:46.257 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:46.253 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.254 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:46.255 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:46.256 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.245
Scenario Outline Check 4cda487b-c467-490c-a843-6563fec016be
Check href links in metadata record van 4cda487b-c467-490c-a843-6563fec016be
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4cda487b-c467-490c-a843-6563fec016be' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.626
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4cda487b-c467-490c-a843-6563fec016be' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:17:46.349 [print] title:Aansluitende zone volgens UNCLOS - Noordzee
* print title 0.000
15:17:46.350 [print] Aansluitende zone volgens UNCLOS - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:46.351 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:46.354 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4cda487b-c467-490c-a843-6563fec016be","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:46.359 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"
]
* def id = "4cda487b-c467-490c-a843-6563fec016be" 0.015
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.795
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 489, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
15:17:47.171 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 489, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.003
15:17:46.381 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.381 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"
}
> * print "testing xlinkurl: 0.000
15:17:46.679 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.680 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be
> Given url link 0.000
> When method HEAD 0.490
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 489, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
15:17:47.171 status code was: 500, expected: 200, response time: 489, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.273
Scenario Outline Check ror-9d8e-4758-83fx-28b057f185e1
Check href links in metadata record van ror-9d8e-4758-83fx-28b057f185e1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185e1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.588
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185e1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:46.364 [print] title:Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 vlakken
* print title 0.000
15:17:46.365 [print] Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:46.367 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:46.369 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ror-9d8e-4758-83fx-28b057f185e1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.005
15:17:46.378 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "ror-9d8e-4758-83fx-28b057f185e1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.834
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.213 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1"
}
> * print "testing xlinkurl: 0.002
15:17:46.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.384 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
15:17:46.693 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.693 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:17:46.893 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:46.893 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:17:46.894 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.894 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.212 status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:47.212 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.213 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.213 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.213 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:47.213 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.243
Scenario Outline Check ror-9d8e-4758-83fx-28b057f185f1
Check href links in metadata record van ror-9d8e-4758-83fx-28b057f185f1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185f1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185f1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:46.763 [print] title:Richtlijn Overstromingsrisico - historische overstromingen EU2018
* print title 0.001
15:17:46.764 [print] Richtlijn Overstromingsrisico - historische overstromingen EU2018
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:46.765 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:46.767 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ror-9d8e-4758-83fx-28b057f185f1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:46.774 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "ror-9d8e-4758-83fx-28b057f185f1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.852
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.627 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1"
}
> * print "testing xlinkurl: 0.000
15:17:46.778 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.779 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1
> Given url link 0.000
> When method HEAD 0.322
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
15:17:47.103 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.103 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:17:47.304 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:47.304 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:17:47.305 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.305 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.623 status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.001
15:17:47.623 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.626 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.627 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.627 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:47.627 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.348
Scenario Outline Check uwwtd-9d8e-4758-83fa-28b057f185e3
Check href links in metadata record van uwwtd-9d8e-4758-83fa-28b057f185e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e3' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.562
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:46.823 [print] title:Richtlijn Stedelijk Afvalwater - rioolwaterzuiveringsinstallaties Nederland EU2015
* print title 0.000
15:17:46.824 [print] Richtlijn Stedelijk Afvalwater - rioolwaterzuiveringsinstallaties Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:46.826 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:46.827 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"uwwtd-9d8e-4758-83fa-28b057f185e3","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:46.833 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e3" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.887
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.722 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3"
}
> * print "testing xlinkurl: 0.000
15:17:46.837 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:46.838 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3
> Given url link 0.000
> When method HEAD 0.352
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:47.191 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.192 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:47.392 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:47.392 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:47.393 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.393 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.327
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.721 status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:47.721 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.721 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.722 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.722 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:47.722 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.251
Scenario Outline Check uwwtd-9d8e-4758-83fa-28b057f185e1
Check href links in metadata record van uwwtd-9d8e-4758-83fa-28b057f185e1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.556
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:47.045 [print] title:Richtlijn Stedelijk Afvalwater - agglomeraties Nederland EU2015
* print title 0.000
15:17:47.046 [print] Richtlijn Stedelijk Afvalwater - agglomeraties Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:47.047 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.002
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:47.050 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"uwwtd-9d8e-4758-83fa-28b057f185e1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:47.057 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e1" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.842
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.901 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1"
}
> * print "testing xlinkurl: 0.000
15:17:47.063 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.005
15:17:47.069 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:47.379 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.380 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:47.580 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:47.582 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:47.583 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.584 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.897 status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.002
15:17:47.897 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:47.900 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.900 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:47.901 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:47.901 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.668
Scenario Outline Check 76091be7-358a-4a44-8182-b4139c96c6a4
Check href links in metadata record van 76091be7-358a-4a44-8182-b4139c96c6a4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '76091be7-358a-4a44-8182-b4139c96c6a4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.517
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76091be7-358a-4a44-8182-b4139c96c6a4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:47.692 [print] title:Adressen
* print title 0.000
15:17:47.692 [print] Adressen
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:47.693 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:47.695 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"76091be7-358a-4a44-8182-b4139c96c6a4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:47.699 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"
]
* def id = "76091be7-358a-4a44-8182-b4139c96c6a4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.071
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:17:47.772 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"
}
> * print "testing xlinkurl: 0.000
15:17:47.703 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.703 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77
> Given url link 0.000
> When method HEAD 0.066
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:17:47.770 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 66 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77
15:17:47.770 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.606
Scenario Outline Check 0558a41c-b09a-47fa-b8db-9de6bfe4f494
Check href links in metadata record van 0558a41c-b09a-47fa-b8db-9de6bfe4f494
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '0558a41c-b09a-47fa-b8db-9de6bfe4f494' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.578
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0558a41c-b09a-47fa-b8db-9de6bfe4f494' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:47.779 [print] title:Gebouwen
* print title 0.000
15:17:47.779 [print] Gebouwen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:47.780 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:47.781 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"0558a41c-b09a-47fa-b8db-9de6bfe4f494","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:47.786 [print] [
  "http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2",
  ""
]
* def id = "0558a41c-b09a-47fa-b8db-9de6bfe4f494" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.011
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:47.798 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"
}
> * print "testing xlinkurl: 0.000
15:17:47.789 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.789 [print] testing xlinkurl:http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:47.790 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2
15:17:47.790 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:47.790 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:47.790 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
15:17:47.793 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:47.795 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:47.796 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.239
Scenario Outline Check 1c3afc74-cc34-44b7-938a-963e2350795a
Check href links in metadata record van 1c3afc74-cc34-44b7-938a-963e2350795a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1c3afc74-cc34-44b7-938a-963e2350795a' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.615
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c3afc74-cc34-44b7-938a-963e2350795a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:47.833 [print] title:Hydrografie - Physical Waters (INSPIRE geharmoniseerd)
* print title 0.000
15:17:47.833 [print] Hydrografie - Physical Waters (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:47.835 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:47.837 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1c3afc74-cc34-44b7-938a-963e2350795a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:47.842 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"
]
* def id = "1c3afc74-cc34-44b7-938a-963e2350795a" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.307
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:48.150 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.005
15:17:47.850 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:47.851 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"
}
> * print "testing xlinkurl: 0.001
15:17:48.147 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.148 [print] testing xlinkurl:http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:48.149 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c
15:17:48.149 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.390
Scenario Outline Check c935f2ab-9b65-4dc4-94a0-73aeb840a941
Check href links in metadata record van c935f2ab-9b65-4dc4-94a0-73aeb840a941
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.012
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.372
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.014 [print] title:Overheidsdiensten
* print title 0.000
15:17:48.014 [print] Overheidsdiensten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:48.015 [print] [
  "erik.simonse@kvk.nl",
  "erik.simonse@kvk.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:48.016 [print] organisation: [
  "Kamer van Koophandel",
  "Kamer van Koophandel"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c935f2ab-9b65-4dc4-94a0-73aeb840a941","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:48 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "c935f2ab-9b65-4dc4-94a0-73aeb840a941" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
1.662
Scenario Outline Check 4783ea4f-6b8c-4600-8af0-516f3556cfe9
Check href links in metadata record van 4783ea4f-6b8c-4600-8af0-516f3556cfe9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4783ea4f-6b8c-4600-8af0-516f3556cfe9' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.599
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4783ea4f-6b8c-4600-8af0-516f3556cfe9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.327 [print] title:Kaderrichtlijn Water - Register Beschermd Gebied - Schelpdierwater 2008
* print title 0.000
15:17:48.327 [print] Kaderrichtlijn Water - Register Beschermd Gebied - Schelpdierwater 2008
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:48.328 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:48.329 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4783ea4f-6b8c-4600-8af0-516f3556cfe9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:48.336 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "",
  "",
  "",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "4783ea4f-6b8c-4600-8af0-516f3556cfe9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.526
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=}, {link=}, {link=}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:48.863 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9"
}
> * print "testing xlinkurl: 0.000
15:17:48.340 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.340 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:48.656 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.656 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:48.857 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.857 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:48.858 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.859 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.859 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.859 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.859 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.860 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.860 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.860 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.860 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.860 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.861 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.861 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.861 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.861 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:48.862 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.862 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.863 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:48.863 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:48.863 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.655
Scenario Outline Check 7c24ea89-074e-4c4f-91e3-d38e813e9cb6
Check href links in metadata record van 7c24ea89-074e-4c4f-91e3-d38e813e9cb6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7c24ea89-074e-4c4f-91e3-d38e813e9cb6' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.614
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c24ea89-074e-4c4f-91e3-d38e813e9cb6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.391 [print] title:Luchtfoto 2017 25cm CIR open data
* print title 0.000
15:17:48.392 [print] Luchtfoto 2017 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:17:48.394 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:48.396 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7c24ea89-074e-4c4f-91e3-d38e813e9cb6","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:48.402 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b018",
  "",
  "",
  ""
]
* def id = "7c24ea89-074e-4c4f-91e3-d38e813e9cb6" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.014
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b018}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.418 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"
}
> * print "testing xlinkurl: 0.000
15:17:48.406 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.406 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b018
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:48.407 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b018
15:17:48.407 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:17:48.409 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:48.410 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.410 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.411 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.411 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.411 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.412 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.412 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.413 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.414 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.003
15:17:48.414 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.417 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.418 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.418 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.418 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.779
Scenario Outline Check 80630ee7-3a15-4ea0-bdc0-a8aebfa2f204
Check href links in metadata record van 80630ee7-3a15-4ea0-bdc0-a8aebfa2f204
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '80630ee7-3a15-4ea0-bdc0-a8aebfa2f204' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.622
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80630ee7-3a15-4ea0-bdc0-a8aebfa2f204' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.424 [print] title:Oppervlaktegeologie, Geologische kaart onder INSPIRE
* print title 0.000
15:17:48.424 [print] Oppervlaktegeologie, Geologische kaart onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:48.425 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:48.426 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"80630ee7-3a15-4ea0-bdc0-a8aebfa2f204","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.001
15:17:48.437 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "80630ee7-3a15-4ea0-bdc0-a8aebfa2f204" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.075
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 987, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:50.513 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 987, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"
}
> * print "testing xlinkurl: 0.000
15:17:48.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.446 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
15:17:48.726 status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
15:17:48.726 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
15:17:48.728 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.728 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:17:48.929 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:17:48.929 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:17:48.930 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.930 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.591
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:49.522 status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:49.522 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 398, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:49.524 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:49.525 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.987
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 987, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:50.513 status code was: 500, expected: 200, response time: 987, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.847
Scenario Outline Check 1249746f-c2a6-4639-98f2-251676b3528e
Check href links in metadata record van 1249746f-c2a6-4639-98f2-251676b3528e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1249746f-c2a6-4639-98f2-251676b3528e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1249746f-c2a6-4639-98f2-251676b3528e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.571 [print] title:Maritieme grenzen - basislijn Noordzee
* print title 0.000
15:17:48.571 [print] Maritieme grenzen - basislijn Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:48.573 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:48.574 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1249746f-c2a6-4639-98f2-251676b3528e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:48.579 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"
]
* def id = "1249746f-c2a6-4639-98f2-251676b3528e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.645
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
15:17:49.226 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:48.583 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.584 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.343
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"
}
> * print "testing xlinkurl: 0.000
15:17:48.928 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.929 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03
> Given url link 0.000
> When method HEAD 0.289
> Then status 200 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
15:17:49.224 status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.288
Scenario Outline Check f1d27179-36eb-4376-8048-f51d2eb23a09
Check href links in metadata record van f1d27179-36eb-4376-8048-f51d2eb23a09
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f1d27179-36eb-4376-8048-f51d2eb23a09' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.579
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1d27179-36eb-4376-8048-f51d2eb23a09' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.733 [print] title:Nederlands deel PSSA Waddenzee
* print title 0.000
15:17:48.733 [print] Nederlands deel PSSA Waddenzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:48.734 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:48.734 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f1d27179-36eb-4376-8048-f51d2eb23a09","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:48.739 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"
]
* def id = "f1d27179-36eb-4376-8048-f51d2eb23a09" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.850
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 1548, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
15:17:50.591 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 1548, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:48.742 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.742 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.297
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"
}
> * print "testing xlinkurl: 0.000
15:17:49.041 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:49.041 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09
> Given url link 0.000
> When method HEAD 1.548
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 1548, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
15:17:50.590 status code was: 500, expected: 200, response time: 1548, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.577
Scenario Outline Check 5b274449-b6c2-4672-a32f-e0bd40975a53
Check href links in metadata record van 5b274449-b6c2-4672-a32f-e0bd40975a53
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5b274449-b6c2-4672-a32f-e0bd40975a53' 0.012
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5b274449-b6c2-4672-a32f-e0bd40975a53' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:48.969 [print] title:Luchtfoto 2018 25cm RGB open data
* print title 0.000
15:17:48.969 [print] Luchtfoto 2018 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:48.971 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:48.972 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5b274449-b6c2-4672-a32f-e0bd40975a53","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:48.977 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b020",
  "",
  "",
  ""
]
* def id = "5b274449-b6c2-4672-a32f-e0bd40975a53" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.013
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b020}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.991 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"
}
> * print "testing xlinkurl: 0.000
15:17:48.980 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.980 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b020
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:48.981 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b020
15:17:48.981 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.981 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:48.982 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.982 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.982 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.982 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.982 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.983 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.983 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.983 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.983 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:48.983 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.989 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:48.989 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:48.990 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:48.991 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.641
Scenario Outline Check krw-782cab20-8328-45f1-a9b2-c27d07c14066
Check href links in metadata record van krw-782cab20-8328-45f1-a9b2-c27d07c14066
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw-782cab20-8328-45f1-a9b2-c27d07c14066' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.239
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw-782cab20-8328-45f1-a9b2-c27d07c14066' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:50.110 [print] title:Kaderrichtlijn Water - Deelstroomgebieden Nederland 2019 vlakken
* print title 0.000
15:17:50.110 [print] Kaderrichtlijn Water - Deelstroomgebieden Nederland 2019 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:50.111 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:50.112 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw-782cab20-8328-45f1-a9b2-c27d07c14066","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:50.118 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw-782cab20-8328-45f1-a9b2-c27d07c14066" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.195
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 464, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:51.314 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066"
}
> * print "testing xlinkurl: 0.000
15:17:50.121 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.121 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066
> Given url link 0.000
> When method HEAD 0.523
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:50.646 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.647 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:50.846 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:50.847 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:50.847 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.847 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.464
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 464, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:51.312 status code was: 500, expected: 200, response time: 464, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:51.312 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 464, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:51.313 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.314 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:51.314 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:51.314 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.369
Scenario Outline Check e536d943-ecff-4d7a-9500-cc31a263a6af
Check href links in metadata record van e536d943-ecff-4d7a-9500-cc31a263a6af
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e536d943-ecff-4d7a-9500-cc31a263a6af' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.341
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e536d943-ecff-4d7a-9500-cc31a263a6af' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:50.335 [print] title:Publiekrechtelijke beperkingen
* print title 0.000
15:17:50.336 [print] Publiekrechtelijke beperkingen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:50.336 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:50.338 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e536d943-ecff-4d7a-9500-cc31a263a6af","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:50.341 [print] [
  "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"
]
* def id = "e536d943-ecff-4d7a-9500-cc31a263a6af" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.010
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:50.352 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"
}
> * print "testing xlinkurl: 0.000
15:17:50.344 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.344 [print] testing xlinkurl:http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124
> Given url link 0.000
> When method HEAD 0.008
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:50.352 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124
15:17:50.352 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.942
Scenario Outline Check 4617f0e0-6af4-4ac0-9044-31df9d03071c
Check href links in metadata record van 4617f0e0-6af4-4ac0-9044-31df9d03071c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4617f0e0-6af4-4ac0-9044-31df9d03071c' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.469
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4617f0e0-6af4-4ac0-9044-31df9d03071c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:50.532 [print] title:Gebieden in de territoriale zee
* print title 0.000
15:17:50.532 [print] Gebieden in de territoriale zee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:50.533 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:50.534 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4617f0e0-6af4-4ac0-9044-31df9d03071c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:50.538 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"
]
* def id = "4617f0e0-6af4-4ac0-9044-31df9d03071c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.733
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 435, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
15:17:51.272 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 435, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:50.541 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.542 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"
}
> * print "testing xlinkurl: 0.000
15:17:50.836 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.836 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c
> Given url link 0.000
> When method HEAD 0.435
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 435, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
15:17:51.272 status code was: 500, expected: 200, response time: 435, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.129
Scenario Outline Check 0f128799-cf18-4b37-a721-e62b068191f5
Check href links in metadata record van 0f128799-cf18-4b37-a721-e62b068191f5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '0f128799-cf18-4b37-a721-e62b068191f5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.372
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0f128799-cf18-4b37-a721-e62b068191f5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:50.602 [print] title:Gebiedsbeheer, gebieden waar beperkingen gelden, gereguleerde gebieden en rapportage-eenheden - Provincies (INSPIRE geharmoniseerd)
* print title 0.000
15:17:50.603 [print] Gebiedsbeheer, gebieden waar beperkingen gelden, gereguleerde gebieden en rapportage-eenheden - Provincies (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:50.605 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:50.606 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"0f128799-cf18-4b37-a721-e62b068191f5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:50.611 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "0f128799-cf18-4b37-a721-e62b068191f5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.874
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 53, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:51.486 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:50.614 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.615 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5"
}
> * print "testing xlinkurl: 0.000
15:17:50.913 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:50.915 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5
> Given url link 0.000
> When method HEAD 0.510
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:51.426 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.426 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.053
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 53, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:51.480 status code was: 404, expected: 200, response time: 53, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:51.480 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 53, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:51.481 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.482 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:51.484 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:51.485 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.190
Scenario Outline Check ca94a0cb-7561-4a10-a7d6-b840e56c33ff
Check href links in metadata record van ca94a0cb-7561-4a10-a7d6-b840e56c33ff
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ca94a0cb-7561-4a10-a7d6-b840e56c33ff' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.585
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca94a0cb-7561-4a10-a7d6-b840e56c33ff' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:50.943 [print] title:Provinciale monumenten
* print title 0.000
15:17:50.943 [print] Provinciale monumenten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:50.944 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:50.945 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ca94a0cb-7561-4a10-a7d6-b840e56c33ff","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:50.949 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "ca94a0cb-7561-4a10-a7d6-b840e56c33ff" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.799
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:51.749 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:50.952 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:50.952 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff"
}
> * print "testing xlinkurl: 0.000
15:17:51.248 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.248 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff
> Given url link 0.000
> When method HEAD 0.454
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:51.705 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.706 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:51.745 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:51.746 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:51.747 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.748 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:51.748 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:51.749 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.339
Scenario Outline Check 380aa01e-dce7-11e3-9f07-901b0e19e163
Check href links in metadata record van 380aa01e-dce7-11e3-9f07-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '380aa01e-dce7-11e3-9f07-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.594
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '380aa01e-dce7-11e3-9f07-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:51.112 [print] title:Netwerk van KNMI waarneemstations
* print title 0.000
15:17:51.113 [print] Netwerk van KNMI waarneemstations
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:51.114 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:51.116 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"380aa01e-dce7-11e3-9f07-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:51.122 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "380aa01e-dce7-11e3-9f07-901b0e19e163" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.367
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:51.490 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"
}
> * print "testing xlinkurl: 0.000
15:17:51.125 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.126 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
15:17:51.444 status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:51.445 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
15:17:51.446 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.447 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.041
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:51.489 status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.900
Scenario Outline Check f002bfc5-7d87-46b6-819e-8415422b65c9
Check href links in metadata record van f002bfc5-7d87-46b6-819e-8415422b65c9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f002bfc5-7d87-46b6-819e-8415422b65c9' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.660
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f002bfc5-7d87-46b6-819e-8415422b65c9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:51.256 [print] title:Aardkundige waarden
* print title 0.000
15:17:51.256 [print] Aardkundige waarden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:51.257 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:51.258 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f002bfc5-7d87-46b6-819e-8415422b65c9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:51.262 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "f002bfc5-7d87-46b6-819e-8415422b65c9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.116
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:52.380 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:17:51.265 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.265 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9"
}
> * print "testing xlinkurl: 0.000
15:17:51.557 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.558 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9
> Given url link 0.000
> When method HEAD 0.778
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:52.337 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:52.337 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.037
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:52.375 status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:17:52.377 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:52.378 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:52.379 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:52.380 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:52.380 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.072
Scenario Outline Check e3b0da1e-0664-4025-b3f5-a54d74a26450
Check href links in metadata record van e3b0da1e-0664-4025-b3f5-a54d74a26450
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e3b0da1e-0664-4025-b3f5-a54d74a26450' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e3b0da1e-0664-4025-b3f5-a54d74a26450' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:51.829 [print] title:zoutvelden en zoutproductieputten onder INSPIRE
* print title 0.000
15:17:51.830 [print] zoutvelden en zoutproductieputten onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:51.831 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:51.831 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e3b0da1e-0664-4025-b3f5-a54d74a26450","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:51.835 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/34",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "e3b0da1e-0664-4025-b3f5-a54d74a26450" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.756
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/34}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 496, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 461, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:53.593 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 461, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"
}
> * print "testing xlinkurl: 0.000
15:17:51.839 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:51.839 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b
> Given url link 0.000
> When method HEAD 0.496
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 496, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
15:17:52.336 status code was: 404, expected: 200, response time: 496, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"
}
> * print "testing xlinkurl: 0.000
15:17:52.336 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 496, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
15:17:52.337 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:52.337 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/34
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
15:17:52.538 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:17:52.538 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
15:17:52.539 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:52.539 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.590
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:53.130 status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:53.130 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:53.131 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.131 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.461
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 461, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:53.593 status code was: 500, expected: 200, response time: 461, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.853
Scenario Outline Check 4b282988-cb91-4bbc-b147-f653014917cb
Check href links in metadata record van 4b282988-cb91-4bbc-b147-f653014917cb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4b282988-cb91-4bbc-b147-f653014917cb' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.834
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b282988-cb91-4bbc-b147-f653014917cb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:52.327 [print] title:Hydrografie
* print title 0.000
15:17:52.328 [print] Hydrografie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:52.329 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:52.330 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4b282988-cb91-4bbc-b147-f653014917cb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:52.334 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"
]
* def id = "4b282988-cb91-4bbc-b147-f653014917cb" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.007
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:52.342 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"
}
> * print "testing xlinkurl: 0.000
15:17:52.341 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:52.341 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:52.342 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80
15:17:52.342 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.575
Scenario Outline Check 50a2c5e6-c8e7-425d-854e-26f578196bc9
Check href links in metadata record van 50a2c5e6-c8e7-425d-854e-26f578196bc9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '50a2c5e6-c8e7-425d-854e-26f578196bc9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.840
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '50a2c5e6-c8e7-425d-854e-26f578196bc9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:52.593 [print] title:Afgevoerde hoeveelheid afval in 2011 vanuit de industrie
* print title 0.000
15:17:52.593 [print] Afgevoerde hoeveelheid afval in 2011 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:52.594 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:52.594 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"50a2c5e6-c8e7-425d-854e-26f578196bc9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:52.600 [print] [
  "https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"
]
* def id = "50a2c5e6-c8e7-425d-854e-26f578196bc9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.363
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:52.964 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"
}
> * print "testing xlinkurl: 0.000
15:17:52.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:52.604 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65
> Given url link 0.000
> When method HEAD 0.359
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:52.962 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65
15:17:52.963 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.750
Scenario Outline Check 64ff8561-5c56-4cc1-ae0e-94366fb70b7e
Check href links in metadata record van 64ff8561-5c56-4cc1-ae0e-94366fb70b7e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.003
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '64ff8561-5c56-4cc1-ae0e-94366fb70b7e' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.700
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '64ff8561-5c56-4cc1-ae0e-94366fb70b7e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.049 [print] title:Luchtfoto 2019 25cm RGB open data
* print title 0.000
15:17:53.050 [print] Luchtfoto 2019 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:53.051 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.052 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Geocart",
  "Geocart",
  "Geocart",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"64ff8561-5c56-4cc1-ae0e-94366fb70b7e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:53.057 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b023",
  "",
  "",
  ""
]
* def id = "64ff8561-5c56-4cc1-ae0e-94366fb70b7e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.022
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b023}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.080 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"
}
> * print "testing xlinkurl: 0.000
15:17:53.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.062 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b023
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.063 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b023
15:17:53.064 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:53.065 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.067 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.068 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:53.068 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:53.070 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.071 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.072 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.073 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:53.074 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:53.075 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.076 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.077 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.078 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:53.079 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.784
Scenario Outline Check df15af6e-0d21-4437-a69f-802be3479bba
Check href links in metadata record van df15af6e-0d21-4437-a69f-802be3479bba
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'df15af6e-0d21-4437-a69f-802be3479bba' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.758
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'df15af6e-0d21-4437-a69f-802be3479bba' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.141 [print] title:Luchtfoto 2016 25cm RGB open data
* print title 0.000
15:17:53.141 [print] Luchtfoto 2016 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:53.143 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.144 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"df15af6e-0d21-4437-a69f-802be3479bba","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:53.148 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b014",
  "",
  "",
  ""
]
* def id = "df15af6e-0d21-4437-a69f-802be3479bba" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.009
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b014}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.159 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"
}
> * print "testing xlinkurl: 0.000
15:17:53.152 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.152 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b014
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.153 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b014
15:17:53.154 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:53.154 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.155 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.155 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.155 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:53.155 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:53.155 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.156 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.156 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.157 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:53.157 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:53.157 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.158 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.158 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:53.158 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:53.159 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.587
Scenario Outline Check 3eebf700-5abf-42e4-826c-03cfb497e366
Check href links in metadata record van 3eebf700-5abf-42e4-826c-03cfb497e366
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3eebf700-5abf-42e4-826c-03cfb497e366' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.564
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3eebf700-5abf-42e4-826c-03cfb497e366' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.349 [print] title:Vervoersnetwerken
* print title 0.000
15:17:53.349 [print] Vervoersnetwerken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:53.350 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.352 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3eebf700-5abf-42e4-826c-03cfb497e366","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:53.356 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"
]
* def id = "3eebf700-5abf-42e4-826c-03cfb497e366" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.006
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.365 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"
}
> * print "testing xlinkurl: 0.000
15:17:53.361 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.362 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.363 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75
15:17:53.363 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.140
Scenario Outline Check 11a292bd-9022-4a9f-b1bf-02f5c89ad74a
Check href links in metadata record van 11a292bd-9022-4a9f-b1bf-02f5c89ad74a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '11a292bd-9022-4a9f-b1bf-02f5c89ad74a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.567
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '11a292bd-9022-4a9f-b1bf-02f5c89ad74a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.535 [print] title:Totale potentie aardwarmte uit aquifers, INSPIRE
* print title 0.000
15:17:53.535 [print] Totale potentie aardwarmte uit aquifers, INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:53.537 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.537 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"11a292bd-9022-4a9f-b1bf-02f5c89ad74a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:53.541 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"
]
* def id = "11a292bd-9022-4a9f-b1bf-02f5c89ad74a" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.282
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
15:17:53.825 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"
}
> * print "testing xlinkurl: 0.000
15:17:53.545 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.545 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
15:17:53.825 status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.143
Scenario Outline Check 6c06740d-058f-4a12-bb3f-bf68efd03d09
Check href links in metadata record van 6c06740d-058f-4a12-bb3f-bf68efd03d09
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6c06740d-058f-4a12-bb3f-bf68efd03d09' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.531
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c06740d-058f-4a12-bb3f-bf68efd03d09' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.615 [print] title:Vervoersnetwerken - Kabelbanen (INSPIRE geharmoniseerd)
* print title 0.000
15:17:53.615 [print] Vervoersnetwerken - Kabelbanen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:53.616 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.617 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6c06740d-058f-4a12-bb3f-bf68efd03d09","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:53.621 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"
]
* def id = "6c06740d-058f-4a12-bb3f-bf68efd03d09" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.303
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.925 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:53.626 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.627 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.295
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"
}
> * print "testing xlinkurl: 0.000
15:17:53.924 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.925 [print] testing xlinkurl:http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:53.925 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a
15:17:53.925 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.145
Scenario Outline Check 7dd1fd45-ace5-41e0-93a6-64e3be231717
Check href links in metadata record van 7dd1fd45-ace5-41e0-93a6-64e3be231717
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7dd1fd45-ace5-41e0-93a6-64e3be231717' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dd1fd45-ace5-41e0-93a6-64e3be231717' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.715 [print] title:Administratieve Eenheden (INSPIRE geharmoniseerd)
* print title 0.000
15:17:53.715 [print] Administratieve Eenheden (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:53.717 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.717 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7dd1fd45-ace5-41e0-93a6-64e3be231717","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:53.722 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"
]
* def id = "7dd1fd45-ace5-41e0-93a6-64e3be231717" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.293
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:54.016 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:53.728 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.728 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.285
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"
}
> * print "testing xlinkurl: 0.000
15:17:54.015 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.015 [print] testing xlinkurl:http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:17:54.016 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1
15:17:54.016 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.243
Scenario Outline Check 8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6
Check href links in metadata record van 8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:53.879 [print] title:Omgevingsdosisequivalenttempo Nationaal Meetnet Radioactiviteit 2011
* print title 0.000
15:17:53.879 [print] Omgevingsdosisequivalenttempo Nationaal Meetnet Radioactiviteit 2011
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:53.879 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:53.880 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:53.883 [print] [
  "https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"
]
* def id = "8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.364
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:54.249 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"
}
> * print "testing xlinkurl: 0.003
15:17:53.891 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:53.891 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:54.248 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd
15:17:54.249 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.260
Scenario Outline Check ad6caa40-89ab-47e3-85ab-3f8e32024a71
Check href links in metadata record van ad6caa40-89ab-47e3-85ab-3f8e32024a71
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ad6caa40-89ab-47e3-85ab-3f8e32024a71' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.527
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ad6caa40-89ab-47e3-85ab-3f8e32024a71' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:17:54.124 [print] title:Emissies naar lucht en water in 2011 vanuit de industrie
* print title 0.000
15:17:54.125 [print] Emissies naar lucht en water in 2011 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:54.127 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:54.128 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ad6caa40-89ab-47e3-85ab-3f8e32024a71","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:54.133 [print] [
  "https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"
]
* def id = "ad6caa40-89ab-47e3-85ab-3f8e32024a71" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:54.495 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"
}
> * print "testing xlinkurl: 0.000
15:17:54.137 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.138 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:54.495 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65
15:17:54.495 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.917
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbead
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbead
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbead' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.550
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbead' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:54.200 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 vlakken
* print title 0.000
15:17:54.200 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:54.202 [print] [
  "servicedesk@ihw.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:54.205 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Informatiehuis Water"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbead","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:54.210 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbead" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.178
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 508, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:55.390 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 508, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead"
}
> * print "testing xlinkurl: 0.001
15:17:54.216 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.217 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead
> Given url link 0.000
> When method HEAD 0.460
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:54.679 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.679 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:54.879 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
15:17:54.879 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:54.881 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.881 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.508
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 508, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:55.390 status code was: 500, expected: 200, response time: 508, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
8.838
Scenario Outline Check a04afee4-47d5-45b7-b7a0-a6f86106af11
Check href links in metadata record van a04afee4-47d5-45b7-b7a0-a6f86106af11
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a04afee4-47d5-45b7-b7a0-a6f86106af11' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a04afee4-47d5-45b7-b7a0-a6f86106af11' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:54.343 [print] title:Mosselzaadinvanginstallaties
* print title 0.000
15:17:54.344 [print] Mosselzaadinvanginstallaties
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:54.344 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "VR@minez.nl",
  "geodatabeheer.giscc@rvo.nl",
  "beheer@pdok.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:54.346 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a04afee4-47d5-45b7-b7a0-a6f86106af11","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:54.350 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "a04afee4-47d5-45b7-b7a0-a6f86106af11" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 4.159
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1268, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:17:58.513 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1268, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:54.356 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.357 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.598
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11"
}
> * print "testing xlinkurl: 0.000
15:17:54.957 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.957 [print] testing xlinkurl:http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11
> Given url link 0.000
> When method HEAD 0.478
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:55.437 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.437 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.534
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:55.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:55.974 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.712
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.001
15:17:56.689 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.690 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.822
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1268, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:17:58.512 status code was: 404, expected: 200, response time: 1268, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.127
Scenario Outline Check e8b84fae-00b3-49c1-80c1-df8f69f64e8c
Check href links in metadata record van e8b84fae-00b3-49c1-80c1-df8f69f64e8c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e8b84fae-00b3-49c1-80c1-df8f69f64e8c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e8b84fae-00b3-49c1-80c1-df8f69f64e8c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:54.441 [print] title:EEZ volgens UNCLOS - Noordzee
* print title 0.000
15:17:54.441 [print] EEZ volgens UNCLOS - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:54.442 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:54.444 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e8b84fae-00b3-49c1-80c1-df8f69f64e8c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:54.449 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"
]
* def id = "e8b84fae-00b3-49c1-80c1-df8f69f64e8c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.804
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 500, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
15:17:55.255 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 500, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:54.453 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.454 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.297
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"
}
> * print "testing xlinkurl: 0.000
15:17:54.754 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.755 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c
> Given url link 0.000
> When method HEAD 0.500
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 500, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
15:17:55.255 status code was: 500, expected: 200, response time: 500, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.007
Scenario Outline Check bb11be63-bd38-4632-bf54-df44c423a529
Check href links in metadata record van bb11be63-bd38-4632-bf54-df44c423a529
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'bb11be63-bd38-4632-bf54-df44c423a529' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.532
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb11be63-bd38-4632-bf54-df44c423a529' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:54.553 [print] title:Territoriale Zee volgens UNCLOS - Noordzee
* print title 0.000
15:17:54.553 [print] Territoriale Zee volgens UNCLOS - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:54.554 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:54.555 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"bb11be63-bd38-4632-bf54-df44c423a529","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:54.560 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"
]
* def id = "bb11be63-bd38-4632-bf54-df44c423a529" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.733
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 440, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
15:17:55.295 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 440, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:54.564 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.565 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.287
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"
}
> * print "testing xlinkurl: 0.000
15:17:54.854 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.855 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529
> Given url link 0.000
> When method HEAD 0.440
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 440, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
15:17:55.295 status code was: 500, expected: 200, response time: 440, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.568
Scenario Outline Check krm-a905-9d8e-4758-83fa-28b057f185e3
Check href links in metadata record van krm-a905-9d8e-4758-83fa-28b057f185e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krm-a905-9d8e-4758-83fa-28b057f185e3' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.559
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krm-a905-9d8e-4758-83fa-28b057f185e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:54.812 [print] title:Kaderrichtlijn Mariene Strategie - Rapportage eenheden Nederland EU2018
* print title 0.000
15:17:54.812 [print] Kaderrichtlijn Mariene Strategie - Rapportage eenheden Nederland EU2018
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:54.813 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:54.814 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krm-a905-9d8e-4758-83fa-28b057f185e3","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:54.818 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "krm-a905-9d8e-4758-83fa-28b057f185e3" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.001
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 338, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:55.820 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 338, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3"
}
> * print "testing xlinkurl: 0.000
15:17:54.821 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:54.821 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3
> Given url link 0.000
> When method HEAD 0.456
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:55.279 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.279 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:55.479 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:55.480 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:55.481 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.481 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.338
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 338, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:55.820 status code was: 500, expected: 200, response time: 338, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.503
Scenario Outline Check krm-a905-9d8e-4758-83fa-28b057f185e4
Check href links in metadata record van krm-a905-9d8e-4758-83fa-28b057f185e4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krm-a905-9d8e-4758-83fa-28b057f185e4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krm-a905-9d8e-4758-83fa-28b057f185e4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:55.015 [print] title:Kaderrichtlijn Mariene Strategie - Mariene wateren Nederland EU2018
* print title 0.000
15:17:55.015 [print] Kaderrichtlijn Mariene Strategie - Mariene wateren Nederland EU2018
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:55.016 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:55.017 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krm-a905-9d8e-4758-83fa-28b057f185e4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:55.021 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "krm-a905-9d8e-4758-83fa-28b057f185e4" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.990
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:56.012 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4"
}
> * print "testing xlinkurl: 0.001
15:17:55.025 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.026 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4
> Given url link 0.000
> When method HEAD 0.464
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:17:55.492 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.492 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:55.692 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:17:55.692 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:55.693 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.693 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:17:56.012 status code was: 500, expected: 200, response time: 318, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.493
Scenario Outline Check 24de356e-ec4d-4a18-9903-6401d222b77c
Check href links in metadata record van 24de356e-ec4d-4a18-9903-6401d222b77c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '24de356e-ec4d-4a18-9903-6401d222b77c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '24de356e-ec4d-4a18-9903-6401d222b77c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:55.800 [print] title:Vergunningen Mijnbouwwet onder INSPIRE
* print title 0.000
15:17:55.800 [print] Vergunningen Mijnbouwwet onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:55.801 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:55.801 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"24de356e-ec4d-4a18-9903-6401d222b77c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:55.806 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "24de356e-ec4d-4a18-9903-6401d222b77c" 0.005
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.471
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 389, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:57.283 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 389, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"
}
> * print "testing xlinkurl: 0.000
15:17:55.814 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
15:17:55.816 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
15:17:56.096 status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
15:17:56.096 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
15:17:56.097 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.098 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:56.298 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.001
15:17:56.299 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:17:56.301 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.301 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.590
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:56.892 status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:17:56.892 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:17:56.893 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.893 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.389
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 389, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:17:57.282 status code was: 500, expected: 200, response time: 389, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.332
Scenario Outline Check e1e99000-ec47-4e9f-84a5-adad24fef0dc
Check href links in metadata record van e1e99000-ec47-4e9f-84a5-adad24fef0dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.003
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e1e99000-ec47-4e9f-84a5-adad24fef0dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.600
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e1e99000-ec47-4e9f-84a5-adad24fef0dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:55.902 [print] title:Natuurlijke alfa activiteitsconcentratie in lucht Nationaal Meetnet Radioactiviteit 2011
* print title 0.000
15:17:55.903 [print] Natuurlijke alfa activiteitsconcentratie in lucht Nationaal Meetnet Radioactiviteit 2011
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:55.903 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:55.904 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e1e99000-ec47-4e9f-84a5-adad24fef0dc","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:55.909 [print] [
  "https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"
]
* def id = "e1e99000-ec47-4e9f-84a5-adad24fef0dc" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.362
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:56.272 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"
}
> * print "testing xlinkurl: 0.000
15:17:55.913 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.913 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:56.270 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f
15:17:56.270 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
6.932
Scenario Outline Check 19165027-a13a-4c19-9013-ec1fd191019d
Check href links in metadata record van 19165027-a13a-4c19-9013-ec1fd191019d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '19165027-a13a-4c19-9013-ec1fd191019d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.522
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '19165027-a13a-4c19-9013-ec1fd191019d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:55.918 [print] title:Wetlands (RAMSAR) (INSPIRE Geharmoniseerd)
* print title 0.000
15:17:55.918 [print] Wetlands (RAMSAR) (INSPIRE Geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:17:55.920 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "GeoDesk.CGI@wur.nl",
  "beheer@pdok.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:55.922 [print] organisation: [
  "",
  ""
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"19165027-a13a-4c19-9013-ec1fd191019d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:17:55.930 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "19165027-a13a-4c19-9013-ec1fd191019d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.199
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 480, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:17:59.129 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 480, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:55.934 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:55.935 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.752
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d"
}
> * print "testing xlinkurl: 0.000
15:17:56.690 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.690 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d
> Given url link 0.000
> When method HEAD 0.218
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:56.909 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.909 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.532
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:17:57.443 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:57.443 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.607
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:17:58.053 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.053 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.076
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 480, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:17:59.129 status code was: 404, expected: 200, response time: 480, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.243
Scenario Outline Check 32a21114-8694-40ce-ab76-9dcd885c7861
Check href links in metadata record van 32a21114-8694-40ce-ab76-9dcd885c7861
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.001
And param id = '32a21114-8694-40ce-ab76-9dcd885c7861' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.504
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '32a21114-8694-40ce-ab76-9dcd885c7861' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.008
* print 'title:' + title 0.000
15:17:56.338 [print] title:Kwaliteit van drinkwater in Nederland (2012)
* print title 0.000
15:17:56.338 [print] Kwaliteit van drinkwater in Nederland (2012)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:56.339 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:56.340 [print] organisation: [
  "RIVM",
  ""
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"32a21114-8694-40ce-ab76-9dcd885c7861","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:56.344 [print] [
  "https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"
]
* def id = "32a21114-8694-40ce-ab76-9dcd885c7861" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:56.707 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"
}
> * print "testing xlinkurl: 0.000
15:17:56.348 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.349 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:17:56.707 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5
15:17:56.707 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.502
Scenario Outline Check 73ec579e-c906-433a-b0b6-d3aa33421558
Check href links in metadata record van 73ec579e-c906-433a-b0b6-d3aa33421558
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '73ec579e-c906-433a-b0b6-d3aa33421558' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.342
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73ec579e-c906-433a-b0b6-d3aa33421558' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:56.358 [print] title:Luchtvaartinformatie
* print title 0.000
15:17:56.358 [print] Luchtvaartinformatie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:56.359 [print] [
  "AIS@LVNL.NL",
  "AIS@LVNL.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:56.360 [print] organisation: [
  "Luchtverkeersleiding Nederland (LVNL)",
  "Luchtverkeersleiding Nederland (LVNL)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"73ec579e-c906-433a-b0b6-d3aa33421558","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:17:56.365 [print] [
  "u",
  "r",
  "n",
  ":",
  "o",
  "g",
  "c",
  ":",
  "d",
  "e",
  "f",
  ":",
  "c",
  "r",
  "s",
  ":",
  "E",
  "P",
  "S",
  "G",
  ":",
  ":",
  "5",
  "6",
  "2",
  "1"
]
* def id = "73ec579e-c906-433a-b0b6-d3aa33421558" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.090
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=u}, {link=r}, {link=n}, {link=:}, {link=o}, {link=g}, {link=c}, {link=:}, {link=d}, {link=e}, {link=f}, {link=:}, {link=c}, {link=r}, {link=s}, {link=:}, {link=E}, {link=P}, {link=S}, {link=G}, {link=:}, {link=:}, {link=5}, {link=6}, {link=2}, {link=1}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"E"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"G"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"5"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"6"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"2"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.457 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:17:56.371 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.371 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.372 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:17:56.373 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
15:17:56.375 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.376 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.377 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.378 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:56.379 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:17:56.380 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.381 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.382 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.382 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:17:56.383 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:56.385 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.386 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.387 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.388 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:17:56.389 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.390 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.391 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.392 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:17:56.393 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:17:56.394 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.395 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.396 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.397 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:17:56.397 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:17:56.399 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.400 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.401 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.402 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:17:56.402 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:56.403 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.403 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.404 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.405 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:17:56.405 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.406 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.407 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.407 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:17:56.408 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:17:56.408 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.409 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.410 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.410 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:17:56.411 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
15:17:56.412 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.412 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.413 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.414 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
15:17:56.414 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:56.415 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.415 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.416 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.416 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:17:56.417 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.418 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.419 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.419 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:17:56.420 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:17:56.420 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.421 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.422 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.422 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:17:56.423 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:17:56.424 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.424 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.425 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.425 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:17:56.425 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:56.426 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.427 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.427 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.427 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "E"
}
> * print "testing xlinkurl: 0.000
15:17:56.428 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.429 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.430 [print] testing xlinkurl:E
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.430 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: E
15:17:56.431 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "P"
}
> * print "testing xlinkurl: 0.000
15:17:56.432 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"E"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.433 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.433 [print] testing xlinkurl:P
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.434 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: P
15:17:56.434 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
15:17:56.435 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.435 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.436 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.436 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:17:56.437 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "G"
}
> * print "testing xlinkurl: 0.000
15:17:56.437 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.438 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.438 [print] testing xlinkurl:G
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.439 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: G
15:17:56.440 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:56.440 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"G"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.441 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.441 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.442 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:17:56.442 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.443 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.443 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.444 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "5"
}
> * print "testing xlinkurl: 0.000
15:17:56.444 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:17:56.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.446 [print] testing xlinkurl:5
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.446 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 5
15:17:56.447 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "6"
}
> * print "testing xlinkurl: 0.000
15:17:56.447 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"5"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.448 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.449 [print] testing xlinkurl:6
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.449 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 6
15:17:56.450 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "2"
}
> * print "testing xlinkurl: 0.000
15:17:56.450 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"6"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.451 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.452 [print] testing xlinkurl:2
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.452 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 2
15:17:56.453 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.000
15:17:56.453 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"2"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.454 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:56.455 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:56.455 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
15:17:56.456 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.470
Scenario Outline Check c3c004ad-5387-4b00-a225-9afbcaa5d31b
Check href links in metadata record van c3c004ad-5387-4b00-a225-9afbcaa5d31b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c3c004ad-5387-4b00-a225-9afbcaa5d31b' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.507
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c3c004ad-5387-4b00-a225-9afbcaa5d31b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:56.786 [print] title:Geluidkaart hoofdspoornet 2016 (Lden)
* print title 0.000
15:17:56.786 [print] Geluidkaart hoofdspoornet 2016 (Lden)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:56.787 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:56.788 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c3c004ad-5387-4b00-a225-9afbcaa5d31b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:56.793 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"
]
* def id = "c3c004ad-5387-4b00-a225-9afbcaa5d31b" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.475
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 471, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
15:17:57.270 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 471, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"
}
> * print "testing xlinkurl: 0.000
15:17:56.797 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:56.798 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b
> Given url link 0.000
> When method HEAD 0.471
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 471, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
15:17:57.270 status code was: 500, expected: 200, response time: 471, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.337
Scenario Outline Check 64c987ec-dce6-11e3-8563-901b0e19e163
Check href links in metadata record van 64c987ec-dce6-11e3-8563-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '64c987ec-dce6-11e3-8563-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.613
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '64c987ec-dce6-11e3-8563-901b0e19e163' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.001
15:17:57.327 [print] title:Actuele synoptische weerwaarnemingen KNMI Nederland per 10 minuten (24 uur)
* print title 0.000
15:17:57.328 [print] Actuele synoptische weerwaarnemingen KNMI Nederland per 10 minuten (24 uur)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:17:57.331 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:17:57.333 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"64c987ec-dce6-11e3-8563-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:17:57.339 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "64c987ec-dce6-11e3-8563-901b0e19e163" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.353
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:57.694 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"
}
> * print "testing xlinkurl: 0.000
15:17:57.343 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:57.344 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
15:17:57.653 status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:57.653 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
15:17:57.654 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:57.654 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:57.694 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.527
Scenario Outline Check f5f68d51-2ca4-4897-8227-d3938b2b0a7e
Check href links in metadata record van f5f68d51-2ca4-4897-8227-d3938b2b0a7e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f5f68d51-2ca4-4897-8227-d3938b2b0a7e' 0.007
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5f68d51-2ca4-4897-8227-d3938b2b0a7e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:57.701 [print] title:Afvalinrichtingen inclusief nucleaire inrichtingen
* print title 0.000
15:17:57.701 [print] Afvalinrichtingen inclusief nucleaire inrichtingen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:57.702 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:57.702 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f5f68d51-2ca4-4897-8227-d3938b2b0a7e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:17:57.707 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "f5f68d51-2ca4-4897-8227-d3938b2b0a7e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.496
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:58.204 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e"
}
> * print "testing xlinkurl: 0.000
15:17:57.710 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:57.710 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:58.160 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.161 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.041
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:58.203 status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:58.203 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:17:58.204 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.204 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:58.204 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:58.204 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.261
Scenario Outline Check b59f06c0-dce5-11e3-9c10-901b0e19e163
Check href links in metadata record van b59f06c0-dce5-11e3-9c10-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b59f06c0-dce5-11e3-9c10-901b0e19e163' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.534
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b59f06c0-dce5-11e3-9c10-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:57.809 [print] title:Aardbevingen Nederland (KNMI)
* print title 0.000
15:17:57.809 [print] Aardbevingen Nederland (KNMI)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:57.810 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:57.811 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b59f06c0-dce5-11e3-9c10-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:57.814 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "b59f06c0-dce5-11e3-9c10-901b0e19e163" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.359
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:58.175 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"
}
> * print "testing xlinkurl: 0.001
15:17:57.818 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:57.819 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
15:17:58.127 status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:58.127 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
15:17:58.128 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.128 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.046
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:58.175 status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.316
Scenario Outline Check daa63e4c-dce6-11e3-991e-901b0e19e163
Check href links in metadata record van daa63e4c-dce6-11e3-991e-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'daa63e4c-dce6-11e3-991e-901b0e19e163' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.572
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'daa63e4c-dce6-11e3-991e-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:57.859 [print] title:Gecontroleerde klimatologische daggegevens KNMI Nederland
* print title 0.000
15:17:57.859 [print] Gecontroleerde klimatologische daggegevens KNMI Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:57.860 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:57.861 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"daa63e4c-dce6-11e3-991e-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:57.865 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "daa63e4c-dce6-11e3-991e-901b0e19e163" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.368
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 52, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:58.235 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 52, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"
}
> * print "testing xlinkurl: 0.000
15:17:57.869 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:57.869 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
15:17:58.178 status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:17:58.180 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
15:17:58.182 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.183 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.051
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 52, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:17:58.235 status code was: 404, expected: 200, response time: 52, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.350
Scenario Outline Check 31de946d-85d4-4c93-bb97-e25f4ef1401a
Check href links in metadata record van 31de946d-85d4-4c93-bb97-e25f4ef1401a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '31de946d-85d4-4c93-bb97-e25f4ef1401a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.518
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '31de946d-85d4-4c93-bb97-e25f4ef1401a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:58.216 [print] title:Vervoersnetwerken - Luchttransport (INSPIRE geharmoniseerd)
* print title 0.000
15:17:58.216 [print] Vervoersnetwerken - Luchttransport (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:58.217 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:58.217 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"31de946d-85d4-4c93-bb97-e25f4ef1401a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:58.223 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"
]
* def id = "31de946d-85d4-4c93-bb97-e25f4ef1401a" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.412
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:17:58.636 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:17:58.227 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:17:58.228 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.338
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"
}
> * print "testing xlinkurl: 0.000
15:17:58.569 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.569 [print] testing xlinkurl:http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de
> Given url link 0.000
> When method HEAD 0.066
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:17:58.635 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 65 milliseconds for URL: http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de
15:17:58.635 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.028
Scenario Outline Check 6f84efeb-fc1d-4565-a721-80735ea57dbd
Check href links in metadata record van 6f84efeb-fc1d-4565-a721-80735ea57dbd
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6f84efeb-fc1d-4565-a721-80735ea57dbd' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.643
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6f84efeb-fc1d-4565-a721-80735ea57dbd' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:58.826 [print] title:Rijksmonumenten (verouderd)
* print title 0.000
15:17:58.826 [print] Rijksmonumenten (verouderd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:58.826 [print] [
  "info@cultureelerfgoed.nl",
  "info@cultureelerfgoed.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:58.827 [print] organisation: [
  "Rijksdienst voor het Cultureel Erfgoed",
  "Rijksdienst voor het Cultureel Erfgoed"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6f84efeb-fc1d-4565-a721-80735ea57dbd","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:58.831 [print] [
  "http://services.rce.geovoorziening.nl/www/download/nl.xml",
  "",
  ""
]
* def id = "6f84efeb-fc1d-4565-a721-80735ea57dbd" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.187
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://services.rce.geovoorziening.nl/www/download/nl.xml}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:59.019 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://services.rce.geovoorziening.nl/www/download/nl.xml"
}
> * print "testing xlinkurl: 0.000
15:17:58.834 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.835 [print] testing xlinkurl:http://services.rce.geovoorziening.nl/www/download/nl.xml
> Given url link 0.000
> When method HEAD 0.180
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:59.017 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.017 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:59.018 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:59.018 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:17:59.018 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:59.018 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.019 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:17:59.019 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:17:59.019 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.351
Scenario Outline Check 7939fd42-cf88-42c5-ab3b-232cf232a3ac
Check href links in metadata record van 7939fd42-cf88-42c5-ab3b-232cf232a3ac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7939fd42-cf88-42c5-ab3b-232cf232a3ac' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.691
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7939fd42-cf88-42c5-ab3b-232cf232a3ac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:58.931 [print] title:Actueel Hoogtebestand Nederland 2 (AHN2)
* print title 0.000
15:17:58.931 [print] Actueel Hoogtebestand Nederland 2 (AHN2)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:58.933 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.003
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:58.937 [print] organisation: [
  "Rijkswaterstaat",
  "stuurgroep AHN",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7939fd42-cf88-42c5-ab3b-232cf232a3ac","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:58.940 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "7939fd42-cf88-42c5-ab3b-232cf232a3ac" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.826
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:59.768 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac"
}
> * print "testing xlinkurl: 0.000
15:17:58.948 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:58.949 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac
> Given url link 0.000
> When method HEAD 0.614
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:17:59.565 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.565 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:17:59.766 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:17:59.766 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:17:59.767 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.767 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:17:59.768 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:17:59.768 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.401
Scenario Outline Check fe45c540-e37d-11e4-b571-0800200c9a66
Check href links in metadata record van fe45c540-e37d-11e4-b571-0800200c9a66
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.390
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:58.907 [print] title:Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* print title 0.000
15:17:58.907 [print] Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:58.908 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:58.909 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"fe45c540-e37d-11e4-b571-0800200c9a66","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:48 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "fe45c540-e37d-11e4-b571-0800200c9a66" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
2.123
Scenario Outline Check cf69ec50-9849-4afd-853c-ee56211d336d
Check href links in metadata record van cf69ec50-9849-4afd-853c-ee56211d336d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'cf69ec50-9849-4afd-853c-ee56211d336d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.671
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee56211d336d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:59.312 [print] title:Waterstanden en afvoeren actueel - Rijkswaterstaat
* print title 0.000
15:17:59.312 [print] Waterstanden en afvoeren actueel - Rijkswaterstaat
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:59.314 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:59.315 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"cf69ec50-9849-4afd-853c-ee56211d336d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:17:59.320 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "cf69ec50-9849-4afd-853c-ee56211d336d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.721
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:00.043 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d"
}
> * print "testing xlinkurl: 0.000
15:17:59.324 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.325 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
15:17:59.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.638 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:17:59.839 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
15:17:59.839 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:17:59.840 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.841 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:18:00.041 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:18:00.041 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:18:00.042 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.042 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:00.043 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:18:00.043 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.726
Scenario Outline Check effe1ab0-073d-437c-af13-df5c5e07d6cd
Check href links in metadata record van effe1ab0-073d-437c-af13-df5c5e07d6cd
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'effe1ab0-073d-437c-af13-df5c5e07d6cd' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.581
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'effe1ab0-073d-437c-af13-df5c5e07d6cd' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:59.499 [print] title:CBS gebiedsindelingen
* print title 0.000
15:17:59.499 [print] CBS gebiedsindelingen
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:17:59.501 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:59.502 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"effe1ab0-073d-437c-af13-df5c5e07d6cd","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:59.506 [print] [
  "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml",
  "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3",
  ""
]
* def id = "effe1ab0-073d-437c-af13-df5c5e07d6cd" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.568
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml}, {link=https://www.iana.org/assignments/media-types/application/geopackage+sqlite3}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.076 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml"
}
> * print "testing xlinkurl: 0.000
15:17:59.510 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.510 [print] testing xlinkurl:https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml
> Given url link 0.000
> When method HEAD 0.385
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3"
}
> * print "testing xlinkurl: 0.000
15:17:59.897 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.898 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/geopackage+sqlite3
> Given url link 0.000
> When method HEAD 0.176
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:00.075 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.075 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.076 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:00.076 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.710
Scenario Outline Check b61a773c-ecad-4e60-93e9-0a4caac0b52f
Check href links in metadata record van b61a773c-ecad-4e60-93e9-0a4caac0b52f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b61a773c-ecad-4e60-93e9-0a4caac0b52f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.629
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b61a773c-ecad-4e60-93e9-0a4caac0b52f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:59.652 [print] title:Olie- en gasvelden onder INSPIRE
* print title 0.000
15:17:59.652 [print] Olie- en gasvelden onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:59.653 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:59.654 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b61a773c-ecad-4e60-93e9-0a4caac0b52f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:59.658 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/33",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "b61a773c-ecad-4e60-93e9-0a4caac0b52f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.537
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/33}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 426, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 419, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:01.197 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 419, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"
}
> * print "testing xlinkurl: 0.000
15:17:59.662 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.663 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
15:17:59.944 status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"
}
> * print "testing xlinkurl: 0.001
15:17:59.946 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
15:17:59.947 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.947 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/33
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
15:18:00.148 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:18:00.148 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
15:18:00.149 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.149 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.620
> Then status 200 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 426, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:18:00.776 status code was: 404, expected: 200, response time: 426, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:18:00.776 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 426, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:18:00.778 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.778 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.419
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 419, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:01.197 status code was: 500, expected: 200, response time: 419, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.398
Scenario Outline Check fe2f9091-1962-4073-9e3b-3e4aeed488a5
Check href links in metadata record van fe2f9091-1962-4073-9e3b-3e4aeed488a5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe2f9091-1962-4073-9e3b-3e4aeed488a5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.632
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe2f9091-1962-4073-9e3b-3e4aeed488a5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:17:59.766 [print] title:Beperkingen voor voertuigen (INSPIRE geharmoniseerde data)
* print title 0.000
15:17:59.766 [print] Beperkingen voor voertuigen (INSPIRE geharmoniseerde data)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:17:59.766 [print] [
  "ontheffingen@rdw.nl",
  "ontheffingen@rdw.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:17:59.767 [print] organisation: [
  "RDW",
  "RDW",
  "RDW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"fe2f9091-1962-4073-9e3b-3e4aeed488a5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:17:59.771 [print] [
  "http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf",
  ""
]
* def id = "fe2f9091-1962-4073-9e3b-3e4aeed488a5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.380
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.152 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf"
}
> * print "testing xlinkurl: 0.000
15:17:59.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:17:59.776 [print] testing xlinkurl:http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf
> Given url link 0.000
> When method HEAD 0.374
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:00.152 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.152 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.152 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:00.152 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.572
Scenario Outline Check 9ed6b8ed-254a-4745-a09a-3b57137d1b69
Check href links in metadata record van 9ed6b8ed-254a-4745-a09a-3b57137d1b69
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9ed6b8ed-254a-4745-a09a-3b57137d1b69' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ed6b8ed-254a-4745-a09a-3b57137d1b69' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:18:00.094 [print] title:Luchtfoto 2019 25cm CIR open data
* print title 0.000
15:18:00.094 [print] Luchtfoto 2019 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.002
15:18:00.098 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.003
15:18:00.102 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Geocart",
  "Geocart",
  "Geocart",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9ed6b8ed-254a-4745-a09a-3b57137d1b69","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:18:00.109 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b024",
  "",
  "",
  ""
]
* def id = "9ed6b8ed-254a-4745-a09a-3b57137d1b69" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.022
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b024}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.132 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"
}
> * print "testing xlinkurl: 0.000
15:18:00.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.115 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b024
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:00.116 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b024
15:18:00.117 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:00.118 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:00.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.120 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.121 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:00.122 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:00.123 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.124 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.124 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.125 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:00.126 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:00.127 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.128 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.129 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.130 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:00.131 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.235
Scenario Outline Check b6ee58a1-b097-4c6d-8600-eb81efc1468c
Check href links in metadata record van b6ee58a1-b097-4c6d-8600-eb81efc1468c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b6ee58a1-b097-4c6d-8600-eb81efc1468c' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6ee58a1-b097-4c6d-8600-eb81efc1468c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:00.312 [print] title:Productie/industrie-inrichtingen (o.b.v. SBI-codes) uit {Risico Register Gevaarlijke stoffen (RRGS)}
* print title 0.000
15:18:00.312 [print] Productie/industrie-inrichtingen (o.b.v. SBI-codes) uit {Risico Register Gevaarlijke stoffen (RRGS)}
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:00.313 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:00.315 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b6ee58a1-b097-4c6d-8600-eb81efc1468c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:00.321 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "b6ee58a1-b097-4c6d-8600-eb81efc1468c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.843
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:01.165 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:18:00.325 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.325 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c"
}
> * print "testing xlinkurl: 0.000
15:18:00.623 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.623 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c
> Given url link 0.000
> When method HEAD 0.494
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:01.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.119 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.043
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:01.163 status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:01.163 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:01.164 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.164 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:01.165 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:01.165 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.783
Scenario Outline Check a322184d-6285-4856-bb78-f450b30ffc0e
Check href links in metadata record van a322184d-6285-4856-bb78-f450b30ffc0e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a322184d-6285-4856-bb78-f450b30ffc0e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.551
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a322184d-6285-4856-bb78-f450b30ffc0e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:00.598 [print] title:Bathymetrie Nederlands deel van de Noordzee dieper dan 10 m LAT
* print title 0.000
15:18:00.598 [print] Bathymetrie Nederlands deel van de Noordzee dieper dan 10 m LAT
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:00.600 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:00.601 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a322184d-6285-4856-bb78-f450b30ffc0e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:00.606 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7",
  "www.hydro.nl",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "a322184d-6285-4856-bb78-f450b30ffc0e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.612
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7}, {link=www.hydro.nl}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 326, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:01.219 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 326, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"
}
> * print "testing xlinkurl: 0.000
15:18:00.609 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.611 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
15:18:00.890 status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "www.hydro.nl"
}
> * print "testing xlinkurl: 0.000
15:18:00.890 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
15:18:00.891 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.892 [print] testing xlinkurl:www.hydro.nl
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.892 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: www.hydro.nl
15:18:00.892 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:18:00.892 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:00.893 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.893 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.325
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 326, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:01.219 status code was: 500, expected: 200, response time: 326, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.570
Scenario Outline Check 17716ed7-ce0d-4bfd-8868-a398e5578a36
Check href links in metadata record van 17716ed7-ce0d-4bfd-8868-a398e5578a36
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '17716ed7-ce0d-4bfd-8868-a398e5578a36' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.551
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17716ed7-ce0d-4bfd-8868-a398e5578a36' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:00.631 [print] title:Ruimtelijke plannen Wro: Ruimtelijkeplannen.nl
* print title 0.000
15:18:00.631 [print] Ruimtelijke plannen Wro: Ruimtelijkeplannen.nl
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:18:00.633 [print] [
  "PPB-GVA@kadaster.nl",
  "ruimtelijkeplannen@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:00.634 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"17716ed7-ce0d-4bfd-8868-a398e5578a36","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:00.639 [print] [
  "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"
]
* def id = "17716ed7-ce0d-4bfd-8868-a398e5578a36" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.004
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:00.644 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"
}
> * print "testing xlinkurl: 0.001
15:18:00.643 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.643 [print] testing xlinkurl:http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:00.644 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76
15:18:00.644 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.207
Scenario Outline Check 002d9127-c16d-4b8d-9f5e-102a8c8e36c4
Check href links in metadata record van 002d9127-c16d-4b8d-9f5e-102a8c8e36c4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '002d9127-c16d-4b8d-9f5e-102a8c8e36c4' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '002d9127-c16d-4b8d-9f5e-102a8c8e36c4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:00.711 [print] title:Geluidkaart hoofdspoornet 2016 (Lnight)
* print title 0.000
15:18:00.713 [print] Geluidkaart hoofdspoornet 2016 (Lnight)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:00.713 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:00.714 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"002d9127-c16d-4b8d-9f5e-102a8c8e36c4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.052
15:18:00.770 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"
]
* def id = "002d9127-c16d-4b8d-9f5e-102a8c8e36c4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.292
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 275, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
15:18:01.063 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 275, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"
}
> * print "testing xlinkurl: 0.000
15:18:00.786 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.787 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 275, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
15:18:01.063 status code was: 400, expected: 200, response time: 275, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.920
Scenario Outline Check 68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
Check href links in metadata record van 68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.621
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:18:00.777 [print] title:Landelijk zoet en zoutwatermeetnet - Rijkswaterstaat
* print title 0.000
15:18:00.777 [print] Landelijk zoet en zoutwatermeetnet - Rijkswaterstaat
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:00.778 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.006
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:00.784 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.003
* def db = new mystorage 0.000
* eval db.mywriteln('"68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:00.792 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.640
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:01.437 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2"
}
> * print "testing xlinkurl: 0.000
15:18:00.799 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:00.799 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
> Given url link 0.000
> When method HEAD 0.431
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.002
15:18:01.234 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.234 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:18:01.435 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:18:01.435 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:18:01.436 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.436 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:01.437 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:18:01.437 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.771
Scenario Outline Check a5241416-8401-4623-be61-57ef50447a41
Check href links in metadata record van a5241416-8401-4623-be61-57ef50447a41
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a5241416-8401-4623-be61-57ef50447a41' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.597
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5241416-8401-4623-be61-57ef50447a41' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:01.246 [print] title:Maritieme grenzen - Noordzee
* print title 0.000
15:18:01.246 [print] Maritieme grenzen - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:01.247 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:01.248 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a5241416-8401-4623-be61-57ef50447a41","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:18:01.253 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"
]
* def id = "a5241416-8401-4623-be61-57ef50447a41" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.583
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 279, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
15:18:01.837 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 279, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:18:01.257 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:18:01.259 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.295
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"
}
> * print "testing xlinkurl: 0.000
15:18:01.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:18:01.558 [print] testing xlinkurl:https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 279, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
15:18:01.837 status code was: 400, expected: 200, response time: 279, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.313
Scenario Outline Check 493ab81b-75f8-4205-b030-6b2fd9eb4295
Check href links in metadata record van 493ab81b-75f8-4205-b030-6b2fd9eb4295
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '493ab81b-75f8-4205-b030-6b2fd9eb4295' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.588
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '493ab81b-75f8-4205-b030-6b2fd9eb4295' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:01.657 [print] title:INSPIRE geharmoniseerde Beschermde Gebieden - Cultuur Historie
* print title 0.000
15:18:01.657 [print] INSPIRE geharmoniseerde Beschermde Gebieden - Cultuur Historie
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:18:01.658 [print] [
  "info@cultureelerfgoed.nl",
  "info@cultureelerfgoed.nl",
  "info@cultureelerfgoed.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:01.659 [print] organisation: [
  "Rijksdienst voor het Cultureel Erfgoed",
  "Rijksdienst voor het Cultureel Erfgoed",
  "Rijksdienst voor het Cultureel Erfgoed"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"493ab81b-75f8-4205-b030-6b2fd9eb4295","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:01.662 [print] [
  "https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"
]
* def id = "493ab81b-75f8-4205-b030-6b2fd9eb4295" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.858
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 855, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
15:18:02.521 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 855, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"
}
> * print "testing xlinkurl: 0.000
15:18:01.665 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.665 [print] testing xlinkurl:https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip
> Given url link 0.000
> When method HEAD 0.855
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 855, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
15:18:02.521 status code was: 404, expected: 200, response time: 855, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.643
Scenario Outline Check f44dac86-2228-412f-8355-e56446ca9933
Check href links in metadata record van f44dac86-2228-412f-8355-e56446ca9933
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f44dac86-2228-412f-8355-e56446ca9933' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.558
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f44dac86-2228-412f-8355-e56446ca9933' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:01.726 [print] title:Gebieden in de Eemsmonding en de Dollard
* print title 0.000
15:18:01.726 [print] Gebieden in de Eemsmonding en de Dollard
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:01.728 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:01.728 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f44dac86-2228-412f-8355-e56446ca9933","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:18:01.734 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933",
  "www.hydro.nl"
]
* def id = "f44dac86-2228-412f-8355-e56446ca9933" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.538
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933}, {link=www.hydro.nl}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 688, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.274 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:18:01.738 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.739 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 1.840
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"
}
> * print "testing xlinkurl: 0.001
15:18:03.581 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.582 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 688, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
15:18:04.272 status code was: 500, expected: 200, response time: 688, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "www.hydro.nl"
}
> * print "testing xlinkurl: 0.000
15:18:04.272 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 688, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
15:18:04.273 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.274 [print] testing xlinkurl:www.hydro.nl
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.274 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: www.hydro.nl
15:18:04.274 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.139
Scenario Outline Check 58e7dc38-a498-4852-b4ef-908f5baa9056
Check href links in metadata record van 58e7dc38-a498-4852-b4ef-908f5baa9056
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '58e7dc38-a498-4852-b4ef-908f5baa9056' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.620
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58e7dc38-a498-4852-b4ef-908f5baa9056' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:01.843 [print] title:Begrenzingen van vergunde ontgrondingsgebieden voor zand- en grindwinning
* print title 0.000
15:18:01.843 [print] Begrenzingen van vergunde ontgrondingsgebieden voor zand- en grindwinning
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:01.844 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:01.845 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"58e7dc38-a498-4852-b4ef-908f5baa9056","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:01.848 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "58e7dc38-a498-4852-b4ef-908f5baa9056" 0.004
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.258
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.110 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:18:01.856 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.857 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 1.725
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056"
}
> * print "testing xlinkurl: 0.000
15:18:03.584 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.584 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056
> Given url link 0.000
> When method HEAD 0.476
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:04.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.061 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.041
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:04.103 status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:04.104 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:04.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.108 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.108 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:04.109 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.891
Scenario Outline Check 07575774-57a1-4419-bab4-6c88fdeb02b2
Check href links in metadata record van 07575774-57a1-4419-bab4-6c88fdeb02b2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '07575774-57a1-4419-bab4-6c88fdeb02b2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.537
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '07575774-57a1-4419-bab4-6c88fdeb02b2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:01.978 [print] title:Hydrografie waterschappen INSPIRE
* print title 0.000
15:18:01.978 [print] Hydrografie waterschappen INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:01.979 [print] [
  "datastromen@hetwaterschapshuis.nl",
  "datastromen@hetwaterschapshuis.nl",
  "",
  "datastromen@hetwaterschapshuis.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:01.981 [print] organisation: [
  "Het Waterschapshuis",
  "Het Waterschapshuis",
  "Het Waterschapshuis",
  "Het Waterschapshuis"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"07575774-57a1-4419-bab4-6c88fdeb02b2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:01.984 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/ETRS89",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"
]
* def id = "07575774-57a1-4419-bab4-6c88fdeb02b2" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.173
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/ETRS89}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 573, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
15:18:04.158 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 573, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/ETRS89"
}
> * print "testing xlinkurl: 0.000
15:18:01.987 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:01.988 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/ETRS89
> Given url link 0.000
> When method HEAD 1.593
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"
}
> * print "testing xlinkurl: 0.000
15:18:03.583 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.583 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2
> Given url link 0.000
> When method HEAD 0.574
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 573, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
15:18:04.158 status code was: 500, expected: 200, response time: 573, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.991
Scenario Outline Check 71c2b7d2-a1a8-4836-b8d4-7247d331b04d
Check href links in metadata record van 71c2b7d2-a1a8-4836-b8d4-7247d331b04d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '71c2b7d2-a1a8-4836-b8d4-7247d331b04d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '71c2b7d2-a1a8-4836-b8d4-7247d331b04d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:02.385 [print] title:CBS Provincies 2012
* print title 0.000
15:18:02.385 [print] CBS Provincies 2012
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:02.386 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:02.387 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"71c2b7d2-a1a8-4836-b8d4-7247d331b04d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:02.390 [print] [
  "http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip",
  ""
]
* def id = "71c2b7d2-a1a8-4836-b8d4-7247d331b04d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.220
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:02.612 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip"
}
> * print "testing xlinkurl: 0.000
15:18:02.394 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:02.394 [print] testing xlinkurl:http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:02.611 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:02.612 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:02.612 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:02.612 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.566
Scenario Outline Check df5ee213-e1bd-433b-80f7-4ea20f493ca8
Check href links in metadata record van df5ee213-e1bd-433b-80f7-4ea20f493ca8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'df5ee213-e1bd-433b-80f7-4ea20f493ca8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.529
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'df5ee213-e1bd-433b-80f7-4ea20f493ca8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:02.509 [print] title:Zwemwaterkwaliteit (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* print title 0.000
15:18:02.509 [print] Zwemwaterkwaliteit (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:02.509 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:02.510 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"df5ee213-e1bd-433b-80f7-4ea20f493ca8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:02.513 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "df5ee213-e1bd-433b-80f7-4ea20f493ca8" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.516
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:03.031 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8"
}
> * print "testing xlinkurl: 0.000
15:18:02.516 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:02.516 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8
> Given url link 0.000
> When method HEAD 0.473
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:02.992 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:02.992 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.034
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:03.027 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:03.027 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:03.030 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.030 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:03.030 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:03.031 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.280
Scenario Outline Check f8d840bc-18df-4449-b797-b9adcb81d3ec
Check href links in metadata record van f8d840bc-18df-4449-b797-b9adcb81d3ec
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f8d840bc-18df-4449-b797-b9adcb81d3ec' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.550
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f8d840bc-18df-4449-b797-b9adcb81d3ec' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:03.075 [print] title:Emissies naar lucht en water in 2015 vanuit de industrie
* print title 0.000
15:18:03.075 [print] Emissies naar lucht en water in 2015 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:03.075 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:03.076 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f8d840bc-18df-4449-b797-b9adcb81d3ec","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:03.082 [print] [
  "https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"
]
* def id = "f8d840bc-18df-4449-b797-b9adcb81d3ec" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:03.444 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"
}
> * print "testing xlinkurl: 0.000
15:18:03.086 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.086 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:03.443 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166
15:18:03.443 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.624
Scenario Outline Check 88f76a94-ee4d-4e0c-9fde-91b692403e39
Check href links in metadata record van 88f76a94-ee4d-4e0c-9fde-91b692403e39
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '88f76a94-ee4d-4e0c-9fde-91b692403e39' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.526
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88f76a94-ee4d-4e0c-9fde-91b692403e39' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:03.142 [print] title:Natuurbranden
* print title 0.000
15:18:03.142 [print] Natuurbranden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:03.143 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:03.144 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"88f76a94-ee4d-4e0c-9fde-91b692403e39","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:18:03.151 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "88f76a94-ee4d-4e0c-9fde-91b692403e39" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.044
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 45, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.199 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.001
15:18:03.157 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:18:03.159 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.420
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39"
}
> * print "testing xlinkurl: 0.000
15:18:03.581 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.581 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39
> Given url link 0.000
> When method HEAD 0.563
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:04.147 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.147 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.045
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 45, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:04.193 status code was: 404, expected: 200, response time: 45, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:18:04.193 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 45, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:04.195 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.196 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.197 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:04.197 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.717
Scenario Outline Check wt-83730-e750-485a-9c0c-39bf9be72cf8
Check href links in metadata record van wt-83730-e750-485a-9c0c-39bf9be72cf8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-83730-e750-485a-9c0c-39bf9be72cf8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.561
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-83730-e750-485a-9c0c-39bf9be72cf8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:03.596 [print] title:Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2016 (INSPIRE geharmoniseerd)
* print title 0.000
15:18:03.596 [print] Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2016 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:03.596 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:03.597 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"wt-83730-e750-485a-9c0c-39bf9be72cf8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:03.601 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "wt-83730-e750-485a-9c0c-39bf9be72cf8" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.575
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 392, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 447, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:05.177 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 447, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8"
}
> * print "testing xlinkurl: 0.000
15:18:03.605 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:03.607 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8
> Given url link 0.000
> When method HEAD 0.722
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:18:04.331 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.331 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.392
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 392, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:18:04.723 status code was: 404, expected: 200, response time: 392, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.005
15:18:04.723 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 392, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:18:04.729 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.729 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 447, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:05.177 status code was: 500, expected: 200, response time: 447, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.944
Scenario Outline Check adn73c4a-ef03-4785-b7f6-942e86b385f7
Check href links in metadata record van adn73c4a-ef03-4785-b7f6-942e86b385f7
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'adn73c4a-ef03-4785-b7f6-942e86b385f7' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.603
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn73c4a-ef03-4785-b7f6-942e86b385f7' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:04.051 [print] title:Bathymetrie Nederland - binnenwateren
* print title 0.000
15:18:04.051 [print] Bathymetrie Nederland - binnenwateren
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:18:04.052 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:04.053 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"adn73c4a-ef03-4785-b7f6-942e86b385f7","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:04.057 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "adn73c4a-ef03-4785-b7f6-942e86b385f7" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.667
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 337, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:04.725 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7"
}
> * print "testing xlinkurl: 0.000
15:18:04.060 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.060 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7
> Given url link 0.000
> When method HEAD 0.324
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:18:04.385 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.386 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.337
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 337, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:18:04.723 status code was: 404, expected: 200, response time: 337, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:18:04.723 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 337, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:18:04.724 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.725 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:04.725 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:18:04.725 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.574
Scenario Outline Check 1be28290-55fa-4486-b9d3-b9d147117863
Check href links in metadata record van 1be28290-55fa-4486-b9d3-b9d147117863
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1be28290-55fa-4486-b9d3-b9d147117863' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1be28290-55fa-4486-b9d3-b9d147117863' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:04.655 [print] title:Luchtfoto 2016 25cm CIR open data
* print title 0.000
15:18:04.656 [print] Luchtfoto 2016 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:04.657 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:04.659 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"1be28290-55fa-4486-b9d3-b9d147117863","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:04.663 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b015",
  "",
  "",
  ""
]
* def id = "1be28290-55fa-4486-b9d3-b9d147117863" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.014
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b015}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.678 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"
}
> * print "testing xlinkurl: 0.000
15:18:04.667 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.667 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b015
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:04.668 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b015
15:18:04.669 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:04.669 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:04.670 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.671 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.671 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:04.672 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:04.672 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.674 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.674 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.675 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:04.675 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:04.676 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.677 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.677 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:04.677 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:04.678 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.746
Scenario Outline Check E7D9F0D6-2B8D-6699-F26E-4A781228F2DD
Check href links in metadata record van E7D9F0D6-2B8D-6699-F26E-4A781228F2DD
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'E7D9F0D6-2B8D-6699-F26E-4A781228F2DD' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.557
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'E7D9F0D6-2B8D-6699-F26E-4A781228F2DD' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:04.719 [print] title:BRO REGIS II Hydrogeologisch model (HGM)
* print title 0.001
15:18:04.720 [print] BRO REGIS II Hydrogeologisch model (HGM)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:04.721 [print] [
  "info@bro.nl",
  "info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:04.723 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.003
* def db = new mystorage 0.000
* eval db.mywriteln('"E7D9F0D6-2B8D-6699-F26E-4A781228F2DD","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:18:04.736 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/NAP",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"
]
* def id = "E7D9F0D6-2B8D-6699-F26E-4A781228F2DD" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.586
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/NAP}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
15:18:05.324 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/NAP"
}
> * print "testing xlinkurl: 0.000
15:18:04.739 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.740 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/NAP
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
15:18:05.041 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.041 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.282
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
15:18:05.324 status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.919
Scenario Outline Check 3387ef8a-9237-453a-aa4e-585d1e193550
Check href links in metadata record van 3387ef8a-9237-453a-aa4e-585d1e193550
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3387ef8a-9237-453a-aa4e-585d1e193550' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.598
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3387ef8a-9237-453a-aa4e-585d1e193550' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:04.801 [print] title:Nationaal Beschermde Gebieden (CDDA) (INSPIRE geharmoniseerd)
* print title 0.000
15:18:04.801 [print] Nationaal Beschermde Gebieden (CDDA) (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:04.802 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:04.804 [print] organisation: [
  "Ministerie van Economische Zaken - GIS Competence Center",
  "Ministerie van Landbouw, Natuur en Voedselkwaliteit",
  "Ministerie van Economische Zaken - GIS Competence Center"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3387ef8a-9237-453a-aa4e-585d1e193550","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:04.807 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl"
]
* def id = "3387ef8a-9237-453a-aa4e-585d1e193550" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.656
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:05.466 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:18:04.811 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.811 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550"
}
> * print "testing xlinkurl: 0.000
15:18:05.106 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.106 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550
> Given url link 0.000
> When method HEAD 0.321
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:05.429 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.429 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.035
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:05.465 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.776
Scenario Outline Check 7D35598D-DFBF-C64D-0F1A-92A80A45EB14
Check href links in metadata record van 7D35598D-DFBF-C64D-0F1A-92A80A45EB14
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7D35598D-DFBF-C64D-0F1A-92A80A45EB14' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.588
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7D35598D-DFBF-C64D-0F1A-92A80A45EB14' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:04.868 [print] title:BRO GeoTOP (GTM)
* print title 0.000
15:18:04.868 [print] BRO GeoTOP (GTM)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:04.870 [print] [
  "info@bro.nl",
  "info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:04.871 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7D35598D-DFBF-C64D-0F1A-92A80A45EB14","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:04.875 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/NAP",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"
]
* def id = "7D35598D-DFBF-C64D-0F1A-92A80A45EB14" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.589
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/NAP}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 285, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
15:18:05.466 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 285, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/NAP"
}
> * print "testing xlinkurl: 0.000
15:18:04.879 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:04.879 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/NAP
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.003
15:18:05.180 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.180 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.285
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 285, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
15:18:05.466 status code was: 404, expected: 200, response time: 285, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.203
Scenario Outline Check 03671a9e-6aaf-464d-be99-9aad25cef9e3
Check href links in metadata record van 03671a9e-6aaf-464d-be99-9aad25cef9e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '03671a9e-6aaf-464d-be99-9aad25cef9e3' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.551
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03671a9e-6aaf-464d-be99-9aad25cef9e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:05.233 [print] title:Habitatrichtlijn verspreidingsgebied van habitattypen
* print title 0.000
15:18:05.233 [print] Habitatrichtlijn verspreidingsgebied van habitattypen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:05.234 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "",
  "GeoDesk.CGI@wur.nl",
  "geodatabeheer.giscc@rvo.nl",
  "beheerPDOK@kadaster.nl",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:05.235 [print] organisation: [
  "Ministerie van Economische Zaken - GIS Competence Center",
  "",
  "Wageningen Environmental Research (Alterra)",
  "PDOK",
  "Alterra"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"03671a9e-6aaf-464d-be99-9aad25cef9e3","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:05.238 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
]
* def id = "03671a9e-6aaf-464d-be99-9aad25cef9e3" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.823
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"
}
> * print "testing xlinkurl: 0.000
15:18:05.241 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.241 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3
> Given url link 0.000
> When method HEAD 0.287
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
15:18:05.529 status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:18:05.529 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 287, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
15:18:05.530 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.530 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.531
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.293
Scenario Outline Check 60a2a7c2-d5b3-4ad5-b562-c448695357fb
Check href links in metadata record van 60a2a7c2-d5b3-4ad5-b562-c448695357fb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '60a2a7c2-d5b3-4ad5-b562-c448695357fb' 0.001
And param elementsetname = 'full' 0.005
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.595
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60a2a7c2-d5b3-4ad5-b562-c448695357fb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:05.329 [print] title:Nationale Landschappen
* print title 0.000
15:18:05.330 [print] Nationale Landschappen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:05.330 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:05.331 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"60a2a7c2-d5b3-4ad5-b562-c448695357fb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
15:18:05.338 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "60a2a7c2-d5b3-4ad5-b562-c448695357fb" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.843
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:06.182 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:18:05.341 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.342 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.293
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb"
}
> * print "testing xlinkurl: 0.000
15:18:05.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.637 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb
> Given url link 0.000
> When method HEAD 0.501
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:06.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.141 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.035
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:06.176 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:06.178 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:06.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.179 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:06.180 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:06.181 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.214
Scenario Outline Check uwwtd-9d8e-4758-83fa-28b057f185e2
Check href links in metadata record van uwwtd-9d8e-4758-83fa-28b057f185e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.525
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:18:05.707 [print] title:Richtlijn Stedelijk Afvalwater - lozingspunten Nederland EU2015
* print title 0.000
15:18:05.707 [print] Richtlijn Stedelijk Afvalwater - lozingspunten Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:05.708 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:05.709 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"uwwtd-9d8e-4758-83fa-28b057f185e2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:05.713 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e2" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.841
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:06.557 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2"
}
> * print "testing xlinkurl: 0.001
15:18:05.720 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.720 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:18:06.037 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.037 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:18:06.237 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:18:06.237 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:18:06.238 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.238 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:06.548 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.005
15:18:06.550 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:06.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.556 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:06.557 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:18:06.557 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.527
Scenario Outline Check F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275
Check href links in metadata record van F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.528
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:05.856 [print] title:BRO Digital Geological Model (DGM)
* print title 0.000
15:18:05.856 [print] BRO Digital Geological Model (DGM)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:05.857 [print] [
  "info@bro.nl",
  "info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:05.858 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:18:05.862 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.996
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:06.860 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
15:18:05.867 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:05.868 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
15:18:06.149 status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
15:18:06.149 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
15:18:06.150 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.150 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:18:06.350 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"
}
> * print "testing xlinkurl: 0.000
15:18:06.350 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:18:06.351 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.352 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/#
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
15:18:06.551 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:18:06.552 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
15:18:06.552 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.553 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:06.860 status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.594
Scenario Outline Check 1a40eb6f-4f33-4e15-a0b1-2d350ad2636e
Check href links in metadata record van 1a40eb6f-4f33-4e15-a0b1-2d350ad2636e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.005
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1a40eb6f-4f33-4e15-a0b1-2d350ad2636e' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1a40eb6f-4f33-4e15-a0b1-2d350ad2636e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:06.049 [print] title:Geografische Namen (INSPIRE geharmoniseerd)
* print title 0.000
15:18:06.049 [print] Geografische Namen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:18:06.051 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:06.052 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1a40eb6f-4f33-4e15-a0b1-2d350ad2636e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:06.056 [print] [
  "http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"
]
* def id = "1a40eb6f-4f33-4e15-a0b1-2d350ad2636e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.003
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:06.060 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"
}
> * print "testing xlinkurl: 0.000
15:18:06.059 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.060 [print] testing xlinkurl:http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:06.060 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e
15:18:06.060 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.471
Scenario Outline Check 6c1cf452-8c62-4046-99ab-640a5e184f9c
Check href links in metadata record van 6c1cf452-8c62-4046-99ab-640a5e184f9c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6c1cf452-8c62-4046-99ab-640a5e184f9c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c1cf452-8c62-4046-99ab-640a5e184f9c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:06.013 [print] title:Geologisch booronderzoek onder INSPIRE
* print title 0.000
15:18:06.013 [print] Geologisch booronderzoek onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:06.014 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:06.015 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6c1cf452-8c62-4046-99ab-640a5e184f9c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:06.018 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "6c1cf452-8c62-4046-99ab-640a5e184f9c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.461
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:07.481 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"
}
> * print "testing xlinkurl: 0.000
15:18:06.022 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.022 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
15:18:06.304 status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
15:18:06.305 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
15:18:06.306 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.306 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:18:06.507 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:18:06.507 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:18:06.508 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.508 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.662
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:18:07.171 status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:18:07.171 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 396, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:18:07.172 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:07.172 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:18:07.481 status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.146
Scenario Outline Check 34e95842-4e4e-46de-9198-79e8cd4d30dc
Check href links in metadata record van 34e95842-4e4e-46de-9198-79e8cd4d30dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '34e95842-4e4e-46de-9198-79e8cd4d30dc' 0.005
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.567
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34e95842-4e4e-46de-9198-79e8cd4d30dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:06.635 [print] title:Geografische Namen (Nat) - Nederland
* print title 0.000
15:18:06.635 [print] Geografische Namen (Nat) - Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:06.636 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:06.637 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"34e95842-4e4e-46de-9198-79e8cd4d30dc","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:18:06.642 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"
]
* def id = "34e95842-4e4e-46de-9198-79e8cd4d30dc" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.283
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
15:18:06.926 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"
}
> * print "testing xlinkurl: 0.000
15:18:06.646 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:18:06.647 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc
> Given url link 0.000
> When method HEAD 0.278
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
15:18:06.926 status code was: 404, expected: 200, response time: 278, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.228
Scenario Outline Check 8f45b8ef-0ce8-463a-9059-5efdcecb785c
Check href links in metadata record van 8f45b8ef-0ce8-463a-9059-5efdcecb785c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8f45b8ef-0ce8-463a-9059-5efdcecb785c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8f45b8ef-0ce8-463a-9059-5efdcecb785c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:06.587 [print] title:Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd)
* print title 0.000
15:18:06.587 [print] Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:06.588 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:06.590 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8f45b8ef-0ce8-463a-9059-5efdcecb785c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:06.593 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"
]
* def id = "8f45b8ef-0ce8-463a-9059-5efdcecb785c" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.349
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:06.945 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:18:06.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.598 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.344
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"
}
> * print "testing xlinkurl: 0.000
15:18:06.944 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:06.944 [print] testing xlinkurl:http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:06.944 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586
15:18:06.944 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.578
Scenario Outline Check afc450bd-65b3-4e59-b0fb-619869bf6ada
Check href links in metadata record van afc450bd-65b3-4e59-b0fb-619869bf6ada
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'afc450bd-65b3-4e59-b0fb-619869bf6ada' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.564
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'afc450bd-65b3-4e59-b0fb-619869bf6ada' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:07.125 [print] title:Landelijk grondwaterregister - Faciliteiten voor productie en industrie
* print title 0.000
15:18:07.126 [print] Landelijk grondwaterregister - Faciliteiten voor productie en industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:07.126 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:07.128 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"afc450bd-65b3-4e59-b0fb-619869bf6ada","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:07.131 [print] [
  ""
]
* def id = "afc450bd-65b3-4e59-b0fb-619869bf6ada" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.003
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:07.135 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:07.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:07.134 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:07.135 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:07.135 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.294
Scenario Outline Check 5800f3b0-2ea2-4231-8165-216a7b26867f
Check href links in metadata record van 5800f3b0-2ea2-4231-8165-216a7b26867f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5800f3b0-2ea2-4231-8165-216a7b26867f' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.563
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5800f3b0-2ea2-4231-8165-216a7b26867f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:07.431 [print] title:Gemeten Koolstofmonoxide concentraties in buitenlucht.
* print title 0.000
15:18:07.431 [print] Gemeten Koolstofmonoxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:07.432 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:07.433 [print] organisation: RIVM
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5800f3b0-2ea2-4231-8165-216a7b26867f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:07.437 [print] [
  "https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"
]
* def id = "5800f3b0-2ea2-4231-8165-216a7b26867f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.358
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:07.799 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"
}
> * print "testing xlinkurl: 0.000
15:18:07.442 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:07.443 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:07.799 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f
15:18:07.799 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.274
Scenario Outline Check b3ec8793-7747-4da0-b6c3-aa384446a586
Check href links in metadata record van b3ec8793-7747-4da0-b6c3-aa384446a586
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b3ec8793-7747-4da0-b6c3-aa384446a586' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3ec8793-7747-4da0-b6c3-aa384446a586' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:07.473 [print] title:Gemeten Fijn stof concentraties in buitenlucht.
* print title 0.000
15:18:07.473 [print] Gemeten Fijn stof concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:07.475 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:07.475 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b3ec8793-7747-4da0-b6c3-aa384446a586","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:07.480 [print] [
  "https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"
]
* def id = "b3ec8793-7747-4da0-b6c3-aa384446a586" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:07.845 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"
}
> * print "testing xlinkurl: 0.000
15:18:07.489 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:07.489 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:07.845 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa
15:18:07.845 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.335
Scenario Outline Check 733559a5-201d-40e5-ad43-d1c7bae84d9f
Check href links in metadata record van 733559a5-201d-40e5-ad43-d1c7bae84d9f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '733559a5-201d-40e5-ad43-d1c7bae84d9f' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.605
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '733559a5-201d-40e5-ad43-d1c7bae84d9f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:07.554 [print] title:Gemeten Stikstofdioxide concentraties in buitenlucht.
* print title 0.000
15:18:07.554 [print] Gemeten Stikstofdioxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:07.555 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:07.557 [print] organisation: RIVM
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"733559a5-201d-40e5-ad43-d1c7bae84d9f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:07.561 [print] [
  "https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"
]
* def id = "733559a5-201d-40e5-ad43-d1c7bae84d9f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 357, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
15:18:07.923 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 357, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"
}
> * print "testing xlinkurl: 0.000
15:18:07.565 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:07.565 [print] testing xlinkurl:https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6
> Given url link 0.000
> When method HEAD 0.357
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 357, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
15:18:07.923 status code was: 404, expected: 200, response time: 357, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.242
Scenario Outline Check ror-9d8e-4758-83fx-28b057f185g1
Check href links in metadata record van ror-9d8e-4758-83fx-28b057f185g1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185g1' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.539
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185g1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:07.679 [print] title:Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 lijnen
* print title 0.000
15:18:07.680 [print] Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:18:07.683 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:07.684 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ror-9d8e-4758-83fx-28b057f185g1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:07.688 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "ror-9d8e-4758-83fx-28b057f185g1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.847
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:08.536 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1"
}
> * print "testing xlinkurl: 0.000
15:18:07.691 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:07.692 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1
> Given url link 0.000
> When method HEAD 0.324
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.002
15:18:08.020 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.020 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:18:08.222 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:18:08.223 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:18:08.224 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.225 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:08.535 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:18:08.535 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:08.535 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.535 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:08.536 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:18:08.536 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.116
Scenario Outline Check 49ab8bee-b467-486a-96ca-b950443c453a
Check href links in metadata record van 49ab8bee-b467-486a-96ca-b950443c453a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '49ab8bee-b467-486a-96ca-b950443c453a' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.532
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ab8bee-b467-486a-96ca-b950443c453a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:08.017 [print] title:Beschermde gebieden - Provincies (INSPIRE geharmoniseerd)
* print title 0.000
15:18:08.017 [print] Beschermde gebieden - Provincies (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:08.018 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:08.019 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"49ab8bee-b467-486a-96ca-b950443c453a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:08.023 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "49ab8bee-b467-486a-96ca-b950443c453a" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.788
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.813 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:18:08.026 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.026 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a"
}
> * print "testing xlinkurl: 0.000
15:18:08.321 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:18:08.322 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:08.772 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.772 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.035
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:08.808 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:08.808 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:08.810 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.810 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.813 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:08.813 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.266
Scenario Outline Check af135cd8-d429-4fc7-b9e3-09e15217520d
Check href links in metadata record van af135cd8-d429-4fc7-b9e3-09e15217520d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'af135cd8-d429-4fc7-b9e3-09e15217520d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.539
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af135cd8-d429-4fc7-b9e3-09e15217520d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:08.342 [print] title:Gemeten fijnere fractie van Fijn stof concentraties in buitenlucht.
* print title 0.000
15:18:08.342 [print] Gemeten fijnere fractie van Fijn stof concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:08.344 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:08.344 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"af135cd8-d429-4fc7-b9e3-09e15217520d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:08.349 [print] [
  "https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"
]
* def id = "af135cd8-d429-4fc7-b9e3-09e15217520d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.358
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:08.709 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"
}
> * print "testing xlinkurl: 0.000
15:18:08.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.352 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:08.709 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db
15:18:08.709 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.296
Scenario Outline Check 500d396f-5ec6-4e4b-a151-5fb3cddd8082
Check href links in metadata record van 500d396f-5ec6-4e4b-a151-5fb3cddd8082
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '500d396f-5ec6-4e4b-a151-5fb3cddd8082' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.563
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '500d396f-5ec6-4e4b-a151-5fb3cddd8082' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:08.412 [print] title:Gemeten Zwaveldioxide concentraties in buitenlucht.
* print title 0.000
15:18:08.412 [print] Gemeten Zwaveldioxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:18:08.414 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:18:08.416 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"500d396f-5ec6-4e4b-a151-5fb3cddd8082","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:18:08.421 [print] [
  "https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"
]
* def id = "500d396f-5ec6-4e4b-a151-5fb3cddd8082" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:08.783 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"
}
> * print "testing xlinkurl: 0.000
15:18:08.425 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.425 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:08.783 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b
15:18:08.783 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.297
Scenario Outline Check f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833
Check href links in metadata record van f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.563
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:08.490 [print] title:Gemeten Stikstofmonoxide concentraties in buitenlucht.
* print title 0.000
15:18:08.491 [print] Gemeten Stikstofmonoxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:08.492 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.005
15:18:08.498 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:08.501 [print] [
  "https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"
]
* def id = "f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:08.863 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"
}
> * print "testing xlinkurl: 0.000
15:18:08.504 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.505 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:08.863 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25
15:18:08.863 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.285
Scenario Outline Check d8f370e8-123c-4ab3-9410-04f728327ac6
Check href links in metadata record van d8f370e8-123c-4ab3-9410-04f728327ac6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd8f370e8-123c-4ab3-9410-04f728327ac6' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd8f370e8-123c-4ab3-9410-04f728327ac6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:08.937 [print] title:Gemeten Ozon concentraties in buitenlucht.
* print title 0.000
15:18:08.937 [print] Gemeten Ozon concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:08.937 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:08.938 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d8f370e8-123c-4ab3-9410-04f728327ac6","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.005
* print nlinks 0.000
15:18:08.947 [print] [
  "https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"
]
* def id = "d8f370e8-123c-4ab3-9410-04f728327ac6" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.374
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:09.324 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"
}
> * print "testing xlinkurl: 0.000
15:18:08.962 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.969 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:09.324 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078
15:18:09.324 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.009
Scenario Outline Check a29917b9-3426-4041-a11b-69bcb2256904
Check href links in metadata record van a29917b9-3426-4041-a11b-69bcb2256904
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a29917b9-3426-4041-a11b-69bcb2256904' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.358
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a29917b9-3426-4041-a11b-69bcb2256904' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:08.897 [print] title:Kadastrale kaart v4
* print title 0.000
15:18:08.897 [print] Kadastrale kaart v4
* def email = get response //electronicMailAddress/CharacterString 0.002
* print email 0.000
15:18:08.900 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:08.901 [print] organisation: [
  "Kadaster",
  "Kadaster en Openbare Registers",
  "Dienst voor het Kadaster en de Openbare Registers"
]
* def mystorage = Java.type('storage.DataStorage') 0.003
* def db = new mystorage 0.000
* eval db.mywriteln('"a29917b9-3426-4041-a11b-69bcb2256904","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:18:08.910 [print] [
  "h",
  "t",
  "t",
  "p",
  "s",
  ":",
  "/",
  "/",
  "w",
  "w",
  "w",
  ".",
  "n",
  "a",
  "t",
  "i",
  "o",
  "n",
  "a",
  "a",
  "l",
  "g",
  "e",
  "o",
  "r",
  "e",
  "g",
  "i",
  "s",
  "t",
  "e",
  "r",
  ".",
  "n",
  "l",
  ":",
  "4",
  "4",
  "3",
  "/",
  "g",
  "e",
  "o",
  "n",
  "e",
  "t",
  "w",
  "o",
  "r",
  "k",
  "/",
  "s",
  "r",
  "v",
  "/",
  "e",
  "n",
  "g",
  "/",
  "t",
  "h",
  "e",
  "s",
  "a",
  "u",
  "r",
  "u",
  "s",
  ".",
  "d",
  "o",
  "w",
  "n",
  "l",
  "o",
  "a",
  "d",
  "?",
  "r",
  "e",
  "f",
  "=",
  "e",
  "x",
  "t",
  "e",
  "r",
  "n",
  "a",
  "l",
  ".",
  "t",
  "h",
  "e",
  "m",
  "e",
  ".",
  "h",
  "t",
  "t",
  "p",
  "i",
  "n",
  "s",
  "p",
  "i",
  "r",
  "e",
  "e",
  "c",
  "e",
  "u",
  "r",
  "o",
  "p",
  "a",
  "e",
  "u",
  "t",
  "h",
  "e",
  "m",
  "e",
  "-",
  "t",
  "h",
  "e",
  "m",
  "e"
]
* def id = "a29917b9-3426-4041-a11b-69bcb2256904" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.371
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=h}, {link=t}, {link=t}, {link=p}, {link=s}, {link=:}, {link=/}, {link=/}, {link=w}, {link=w}, {link=w}, {link=.}, {link=n}, {link=a}, {link=t}, {link=i}, {link=o}, {link=n}, {link=a}, {link=a}, {link=l}, {link=g}, {link=e}, {link=o}, {link=r}, {link=e}, {link=g}, {link=i}, {link=s}, {link=t}, {link=e}, {link=r}, {link=.}, {link=n}, {link=l}, {link=:}, {link=4}, {link=4}, {link=3}, {link=/}, {link=g}, {link=e}, {link=o}, {link=n}, {link=e}, {link=t}, {link=w}, {link=o}, {link=r}, {link=k}, {link=/}, {link=s}, {link=r}, {link=v}, {link=/}, {link=e}, {link=n}, {link=g}, {link=/}, {link=t}, {link=h}, {link=e}, {link=s}, {link=a}, {link=u}, {link=r}, {link=u}, {link=s}, {link=.}, {link=d}, {link=o}, {link=w}, {link=n}, {link=l}, {link=o}, {link=a}, {link=d}, {link=?}, {link=r}, {link=e}, {link=f}, {link==}, {link=e}, {link=x}, {link=t}, {link=e}, {link=r}, {link=n}, {link=a}, {link=l}, {link=.}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}, {link=.}, {link=h}, {link=t}, {link=t}, {link=p}, {link=i}, {link=n}, {link=s}, {link=p}, {link=i}, {link=r}, {link=e}, {link=e}, {link=c}, {link=e}, {link=u}, {link=r}, {link=o}, {link=p}, {link=a}, {link=e}, {link=u}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}, {link=-}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"k"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"?"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"="}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 101
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 102
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 103
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 104
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 105
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 106
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 107
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 108
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 109
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 110
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 111
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 112
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 113
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 114
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 115
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 116
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 117
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 118
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 119
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 120
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 121
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 122
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 123
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"-"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 124
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 125
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 126
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 127
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 128
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.281 feature call (loop) failed at index: 128
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:18:08.914 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.915 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.915 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:18:08.916 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:08.916 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.917 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.918 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.918 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:08.919 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:08.919 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.920 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.921 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.922 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:08.922 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:18:08.922 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.923 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.924 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.924 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:18:08.924 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:18:08.925 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.926 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.926 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.927 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:18:08.927 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:18:08.927 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.928 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.929 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:18:08.929 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:18:08.929 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:18:08.930 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.931 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.931 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:18:08.931 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
15:18:08.931 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.933 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.933 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.934 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:18:08.934 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:18:08.934 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.934 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.934 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.935 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:18:08.935 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:18:08.935 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.935 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.935 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.936 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:18:08.936 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:18:08.936 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.936 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.936 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.942 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:18:08.943 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:18:08.943 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.943 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.944 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.945 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:18:08.945 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:08.946 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.946 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.947 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:08.947 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.011
15:18:08.947 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.958 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.958 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.959 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:08.959 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:08.959 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.963 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.963 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:08.963 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:18:08.964 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.964 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.964 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.965 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:18:08.965 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:08.965 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.965 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.965 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.970 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:08.970 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.001
15:18:08.970 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.972 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.972 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.972 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:08.972 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:18:08.972 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.973 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.973 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:08.973 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:18:08.973 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.974 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.974 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.974 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:08.974 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:18:08.974 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.975 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.975 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:18:08.975 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.013
15:18:08.975 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.989 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.989 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.989 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:18:08.989 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:08.989 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.990 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.991 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.991 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:08.991 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:08.991 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.992 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.992 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.992 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:08.992 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:08.992 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.993 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.993 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.993 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:08.993 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:08.993 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.994 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.994 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.994 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:08.994 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:18:08.994 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.995 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:08.995 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:08.995 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:18:08.995 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.008
15:18:08.995 feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.004 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.004 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.005 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:18:09.005 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:18:09.005 feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.005 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.005 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.006 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:18:09.006 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.006 feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.007 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.007 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.008 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.008 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.008 feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.009 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.009 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.009 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.009 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.009 feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.010 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.010 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.010 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.010 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[32] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:18:09.010 feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.011 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.011 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.011 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:18:09.011 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[33] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:09.011 feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.012 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.012 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.012 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:09.012 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[34] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:18:09.012 feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.013 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.013 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.013 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:18:09.013 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[35] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:18:09.013 feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.014 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.014 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:18:09.014 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[36] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "4"
}
> * print "testing xlinkurl: 0.000
15:18:09.014 feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:18:09.015 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.015 [print] testing xlinkurl:4
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.015 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 4
15:18:09.015 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[37] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "4"
}
> * print "testing xlinkurl: 0.000
15:18:09.015 feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.016 [print]
> * def link = __arg.link 0.005
> * print "testing xlinkurl:" + link 0.000
15:18:09.022 [print] testing xlinkurl:4
> Given url link 0.009
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.031 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 4
15:18:09.032 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[38] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "3"
}
> * print "testing xlinkurl: 0.001
15:18:09.032 feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.034 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.034 [print] testing xlinkurl:3
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.034 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 3
15:18:09.034 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[39] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:18:09.034 feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.035 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.035 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.035 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:18:09.035 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[40] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:18:09.035 feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.036 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.036 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.036 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:18:09.036 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[41] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.036 feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.037 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.037 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.037 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.037 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[42] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:09.037 feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.038 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.038 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.038 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:09.038 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[43] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:09.038 feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.039 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.039 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.039 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:09.039 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[44] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.039 feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.040 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.006
15:18:09.047 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.049 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.049 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[45] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.002
15:18:09.049 feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.058 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.058 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.058 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.058 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[46] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:18:09.058 feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.059 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.059 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.059 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:18:09.059 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[47] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:09.059 feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.060 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.060 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.060 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:09.060 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[48] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.060 feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.061 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.061 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.061 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[49] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "k"
}
> * print "testing xlinkurl: 0.000
15:18:09.061 feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.062 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.062 [print] testing xlinkurl:k
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.062 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: k
15:18:09.062 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[50] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:18:09.062 feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"k"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.063 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.063 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.063 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:18:09.063 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[51] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:18:09.064 feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.064 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.065 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.065 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:18:09.065 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[52] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.065 feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.066 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.066 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.066 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[53] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "v"
}
> * print "testing xlinkurl: 0.000
15:18:09.066 feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.067 [print] testing xlinkurl:v
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.067 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: v
15:18:09.067 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[54] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:18:09.067 feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.079 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.079 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:18:09.079 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[55] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.080 feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.080 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.080 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.080 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.080 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[56] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:09.080 feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.081 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.081 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:09.081 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[57] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:18:09.082 feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.082 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.082 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.088 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:18:09.088 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[58] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:18:09.088 feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.089 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.089 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.089 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:18:09.089 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[59] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.089 feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.090 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.090 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.090 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.090 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[60] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:18:09.090 feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.091 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.091 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.091 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:18:09.091 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[61] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.091 feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.092 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.092 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.092 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.092 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[62] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:18:09.092 feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.093 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.093 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.093 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:18:09.093 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[63] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:18:09.093 feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.094 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.094 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.094 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:09.094 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[64] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:18:09.094 feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.095 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.095 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.095 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:18:09.095 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[65] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.008
15:18:09.095 feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.104 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.104 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.104 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.104 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[66] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:18:09.104 feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.105 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.105 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.105 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:18:09.105 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[67] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:18:09.105 feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.106 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.106 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.106 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:18:09.106 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[68] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:18:09.106 feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.107 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.107 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.107 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:18:09.107 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[69] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:18:09.107 feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.108 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.112 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:18:09.113 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[70] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:09.113 feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.113 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.113 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.114 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:09.114 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[71] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:18:09.114 feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.114 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.114 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:18:09.114 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[72] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:09.114 feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.115 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.115 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.115 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:09.116 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[73] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:18:09.116 feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.116 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.116 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.117 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:18:09.117 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[74] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:09.117 feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.117 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.118 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.119 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:09.119 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[75] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:18:09.119 feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.120 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.120 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.120 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:09.120 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[76] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:18:09.121 feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.121 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.121 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.122 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:18:09.122 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[77] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "?"
}
> * print "testing xlinkurl: 0.000
15:18:09.122 feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.123 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.123 [print] testing xlinkurl:?
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.123 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: ?
15:18:09.123 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[78] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.124 feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"?"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.124 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.125 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.125 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.125 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[79] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.125 feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.126 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.127 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.127 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.127 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[80] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
15:18:09.127 feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.128 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.128 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.129 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
15:18:09.129 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[81] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "="
}
> * print "testing xlinkurl: 0.000
15:18:09.129 feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.130 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.130 [print] testing xlinkurl:=
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.131 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: =
15:18:09.131 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[82] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.131 feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"="}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.132 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.132 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.133 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.133 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[83] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.000
15:18:09.133 feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.133 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.134 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.134 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
15:18:09.134 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[84] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.134 feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.135 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.135 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.135 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.135 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[85] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.135 feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.136 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.136 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.137 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.137 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[86] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.137 feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.138 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.138 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.138 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.138 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[87] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:09.138 feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.139 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.139 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.139 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:09.141 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[88] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:18:09.141 feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.142 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.142 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.015
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.157 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:09.158 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[89] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:18:09.158 feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.159 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.159 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.159 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:18:09.159 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[90] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.002
15:18:09.159 feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.162 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.162 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.162 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:18:09.162 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[91] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.162 feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.163 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.163 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.163 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.163 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[92] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:18:09.163 feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.164 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.164 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.164 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:18:09.164 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[93] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.164 feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.165 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.165 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.165 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.165 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[94] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:18:09.165 feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.166 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.166 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.166 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:18:09.166 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[95] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.174 feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.175 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.175 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.175 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.175 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[96] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:18:09.175 feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.176 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.176 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.176 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:18:09.176 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[97] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:18:09.176 feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.177 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.177 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:18:09.177 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[98] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.177 feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.178 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.178 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.178 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.178 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[99] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.178 feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.179 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.179 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.179 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[100] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:18:09.179 feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.180 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.180 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.185 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:18:09.185 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[101] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.001
15:18:09.185 feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.187 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.187 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.188 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:18:09.188 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[102] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:18:09.188 feature call (loop) failed at index: 101
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.188 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.189 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:18:09.189 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[103] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.005
15:18:09.189 feature call (loop) failed at index: 102
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.195 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.195 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.195 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:18:09.195 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[104] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:18:09.195 feature call (loop) failed at index: 103
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.196 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.196 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.196 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:18:09.196 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[105] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:18:09.196 feature call (loop) failed at index: 104
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.197 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.197 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:18:09.197 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[106] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.197 feature call (loop) failed at index: 105
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.198 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.198 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.198 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.198 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[107] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.198 feature call (loop) failed at index: 106
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.199 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.199 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.199 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.199 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[108] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.199 feature call (loop) failed at index: 107
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.200 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.206 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.207 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[109] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:18:09.207 feature call (loop) failed at index: 108
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.207 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.207 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.208 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:18:09.208 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[110] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.208 feature call (loop) failed at index: 109
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.208 [print]
> * def link = __arg.link 0.003
> * print "testing xlinkurl:" + link 0.000
15:18:09.212 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.212 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.212 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[111] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:18:09.212 feature call (loop) failed at index: 110
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.212 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.213 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.213 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:18:09.213 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[112] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:18:09.213 feature call (loop) failed at index: 111
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.213 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.214 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.214 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:18:09.214 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[113] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:18:09.214 feature call (loop) failed at index: 112
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.214 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.214 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.215 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:18:09.215 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[114] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:18:09.215 feature call (loop) failed at index: 113
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.215 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.215 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.216 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:18:09.216 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[115] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:18:09.216 feature call (loop) failed at index: 114
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.216 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.216 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.217 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:18:09.217 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[116] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.006
15:18:09.217 feature call (loop) failed at index: 115
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.242 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.243 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.243 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.243 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[117] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:18:09.243 feature call (loop) failed at index: 116
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.244 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.244 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:18:09.244 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[118] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.244 feature call (loop) failed at index: 117
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.245 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.245 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.245 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.245 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[119] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:18:09.247 feature call (loop) failed at index: 118
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.247 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.247 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.247 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:18:09.247 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[120] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.248 feature call (loop) failed at index: 119
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.248 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.248 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.248 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.248 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[121] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:18:09.248 feature call (loop) failed at index: 120
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.252 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.252 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.253 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:18:09.253 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[122] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.253 feature call (loop) failed at index: 121
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.253 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.253 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.254 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.254 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[123] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "-"
}
> * print "testing xlinkurl: 0.000
15:18:09.254 feature call (loop) failed at index: 122
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.254 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.254 [print] testing xlinkurl:-
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.255 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: -
15:18:09.255 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[124] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:18:09.255 feature call (loop) failed at index: 123
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"-"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.255 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.255 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.256 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:18:09.256 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[125] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:18:09.256 feature call (loop) failed at index: 124
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.256 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.256 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.257 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:18:09.257 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[126] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.257 feature call (loop) failed at index: 125
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.257 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.257 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.258 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.258 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[127] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:18:09.258 feature call (loop) failed at index: 126
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.258 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.258 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.021
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.280 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:18:09.280 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[128] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:18:09.280 feature call (loop) failed at index: 127
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.281 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.281 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.281 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:18:09.281 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.293
Scenario Outline Check d3c9efd6-fca7-49d6-92bb-5f507abece90
Check href links in metadata record van d3c9efd6-fca7-49d6-92bb-5f507abece90
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd3c9efd6-fca7-49d6-92bb-5f507abece90' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.557
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd3c9efd6-fca7-49d6-92bb-5f507abece90' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.270 [print] title:Gemeten Ammoniak concentraties in buitenlucht.
* print title 0.000
15:18:09.270 [print] Gemeten Ammoniak concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:09.270 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:09.271 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d3c9efd6-fca7-49d6-92bb-5f507abece90","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:09.274 [print] [
  "https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"
]
* def id = "d3c9efd6-fca7-49d6-92bb-5f507abece90" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.370
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:09.646 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"
}
> * print "testing xlinkurl: 0.000
15:18:09.289 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.289 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:09.645 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d
15:18:09.645 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.264
Scenario Outline Check 588a4cb1-b442-4ac1-87e4-40401e353166
Check href links in metadata record van 588a4cb1-b442-4ac1-87e4-40401e353166
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '588a4cb1-b442-4ac1-87e4-40401e353166' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '588a4cb1-b442-4ac1-87e4-40401e353166' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.316 [print] title:Jaarcijfers Landelijk Meetnet Luchtkwaliteit 2012
* print title 0.000
15:18:09.316 [print] Jaarcijfers Landelijk Meetnet Luchtkwaliteit 2012
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:09.317 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:09.317 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"588a4cb1-b442-4ac1-87e4-40401e353166","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.000
15:18:09.327 [print] [
  "https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"
]
* def id = "588a4cb1-b442-4ac1-87e4-40401e353166" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.364
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:09.692 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"
}
> * print "testing xlinkurl: 0.000
15:18:09.335 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.336 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:18:09.692 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754
15:18:09.692 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.681
Scenario Outline Check 7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b
Check href links in metadata record van 7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.580
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.396 [print] title:Luchtfoto 2018 25cm CIR open data
* print title 0.000
15:18:09.397 [print] Luchtfoto 2018 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:09.398 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:18:09.400 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:18:09.406 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b021",
  "",
  "",
  ""
]
* def id = "7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.045
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b021}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.452 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"
}
> * print "testing xlinkurl: 0.003
15:18:09.411 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.412 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b021
> Given url link 0.000
> When method HEAD 0.034
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:18:09.446 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 34 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b021
15:18:09.446 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:09.446 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:18:09.447 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.447 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.448 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:09.448 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:09.448 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.448 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.448 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.449 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:09.449 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:09.449 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.449 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.449 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.452 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:09.452 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
14.247
Scenario Outline Check 50eef6be-619d-4e16-9b92-48971109b636
Check href links in metadata record van 50eef6be-619d-4e16-9b92-48971109b636
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '50eef6be-619d-4e16-9b92-48971109b636' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.572
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '50eef6be-619d-4e16-9b92-48971109b636' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.438 [print] title:Geluidbelasting rijkswegen in Nederland 2011 (nacht gemiddelde)
* print title 0.000
15:18:09.438 [print] Geluidbelasting rijkswegen in Nederland 2011 (nacht gemiddelde)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:09.439 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:09.440 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"50eef6be-619d-4e16-9b92-48971109b636","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:09.444 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "50eef6be-619d-4e16-9b92-48971109b636" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 6.837
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:16.282 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636"
}
> * print "testing xlinkurl: 0.000
15:18:09.451 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.451 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:18:09.764 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.764 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:18:09.965 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
15:18:09.965 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:18:09.966 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.966 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49
> Given url link 0.000
> When method HEAD 6.002
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:18:15.971 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:15.972 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:16.280 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:18:16.280 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:18:16.281 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:16.281 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:18:16.282 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:18:16.282 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.558
Scenario Outline Check 5c37d29a-006d-4136-8989-adfc35a1d4a7
Check href links in metadata record van 5c37d29a-006d-4136-8989-adfc35a1d4a7
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.014
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5c37d29a-006d-4136-8989-adfc35a1d4a7' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.527
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5c37d29a-006d-4136-8989-adfc35a1d4a7' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.828 [print] title:Wijk- en Buurtkaart 2019 versie 1
* print title 0.000
15:18:09.828 [print] Wijk- en Buurtkaart 2019 versie 1
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:09.829 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:09.830 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5c37d29a-006d-4136-8989-adfc35a1d4a7","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:09.838 [print] [
  ""
]
* def id = "5c37d29a-006d-4136-8989-adfc35a1d4a7" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.002
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.841 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:18:09.841 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.841 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:18:09.841 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:18:09.841 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.166
Scenario Outline Check 844404a2-9cd0-452e-b29a-74588777485a
Check href links in metadata record van 844404a2-9cd0-452e-b29a-74588777485a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '844404a2-9cd0-452e-b29a-74588777485a' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '844404a2-9cd0-452e-b29a-74588777485a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.866 [print] title:Geluidkaart hoofdspoornet 2011 (Lden)
* print title 0.000
15:18:09.866 [print] Geluidkaart hoofdspoornet 2011 (Lden)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:09.866 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:09.867 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"844404a2-9cd0-452e-b29a-74588777485a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:09.870 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"
]
* def id = "844404a2-9cd0-452e-b29a-74588777485a" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.311
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
15:18:10.182 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"
}
> * print "testing xlinkurl: 0.000
15:18:09.873 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:09.873 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
15:18:10.182 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.574
Scenario Outline Check 29c17585-e702-463f-a5dc-99d34b17d333
Check href links in metadata record van 29c17585-e702-463f-a5dc-99d34b17d333
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '29c17585-e702-463f-a5dc-99d34b17d333' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.505
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29c17585-e702-463f-a5dc-99d34b17d333' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:09.961 [print] title:RDinfo
* print title 0.000
15:18:09.961 [print] RDinfo
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:18:09.962 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "rd@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:09.963 [print] organisation: [
  "Kadaster",
  "Dienst van Het Kadaster en Openbare Registers",
  "Dienst voor het Kadaster en de Openbare Registers"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"29c17585-e702-463f-a5dc-99d34b17d333","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.015
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
15:18:09.989 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"
]
* def id = "29c17585-e702-463f-a5dc-99d34b17d333" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.023
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:10.014 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"
}
> * print "testing xlinkurl: 0.008
15:18:10.008 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:18:10.009 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:18:10.012 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81
15:18:10.013 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.376
Scenario Outline Check 280ed37a-b8d2-4ac5-8567-04d84fad3a41
Check href links in metadata record van 280ed37a-b8d2-4ac5-8567-04d84fad3a41
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '280ed37a-b8d2-4ac5-8567-04d84fad3a41' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.505
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280ed37a-b8d2-4ac5-8567-04d84fad3a41' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:18:10.155 [print] title:Natura 2000 (INSPIRE geharmoniseerd)
* print title 0.000
15:18:10.155 [print] Natura 2000 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:18:10.156 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "beheer@pdok.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:18:10.156 [print] organisation: Ministerie van Landbouw, Natuur en Voedselkwaliteit
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"280ed37a-b8d2-4ac5-8567-04d84fad3a41","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:18:10.160 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "280ed37a-b8d2-4ac5-8567-04d84fad3a41" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.932
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 465, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:18:12.095 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 465, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:18:10.165 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:10.165 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.619
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41"
}
> * print "testing xlinkurl: 0.000
15:18:10.787 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:10.787 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41
> Given url link 0.000
> When method HEAD 0.216
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:18:11.004 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:11.005 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:11.066 status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:18:11.066 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:18:11.067 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:18:11.068 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.026
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 465, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:18:12.095 status code was: 404, expected: 200, response time: 465, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000